acer

32313 Reputation

29 Badges

19 years, 313 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

@mmcdara You are querying the address of the values assigned to the entries of V, ie. the address of whatever V[1],etc, evaluate to. Those are not addresses of part of the V structure itself.

The address of the name s is the same, regardless. And the same goes for 1.

I don't see how your answer, "it's more a problem of visualization than a problem of storage" might be meaningful here.

I don't see how your use of addressof is useful to understanding here.

@jalal Do you mean something like this?

restart;

Line:=(q,t)->[(1-t)*8*cos(q),t*8*sin(q),3-6*t]:

F:=Q->plots:-display(
        plottools:-line(Line(Q,-1.5),Line(Q,+2.5),color=black,thickness=5),
        plot3d([(4+4/3*z)*cos(q),(4-4/3*z)*sin(q),z], q=-Pi..Q, z=-10..10,
               style=patchcontour, lightmodel=light4, axes=framed)):

plots:-animate(F, [q], q=-Pi..Pi, frames=50, lightmodel=light4);

Download ruled-surface_ac.mw

note: Sometimes this kind of thing can be made more efficient (time and memory) by making plot3d's grid option depend on q, even to the point of re-use of prior computed values. That doesn't seem to be a requirement here, and the above code is simple.

@Carl Love Thanks. (I really should have thought of that, since it's a significant aspect of the command!)

The Explore command (and the right-panel's PlotBuilder) use Embedded Components.

The embedded PlotComponent does not yet support the colorbar's new plotting substructure.

Does it only happen if you Print directly? Does it occur if you export to PDF file?

Does it happen regardless of whether you use the Print Preview facility?

Does it only occur for 3D curves? If so, does it help if you explicitly add the option style=line?

@sursumCorda 

restart;

kernelopts(version);

`Maple 2018.2, X86 64 LINUX, Nov 16 2018, Build ID 1362973`

u := (1+20230321)*x*y-(x^2+y^2)/2:

maximize(u);

0

maximize(u,location);

0, {[{x = 0, y = 0}, 0]}

Download maximize_bug_2018.mw

@Preben Alsholm Sorry, I don't think that I understand the objection.

I got bogged down in details, and forgot that I was intending to give an opion.

IMNSHO it would not be a good idea for fsolve to attempt to re-evaluate an unevaluated active int call under assumptions of any supplied range.

The evidence that one particular example might attain a root-finding speedup is insufficient justification.

There are many integrals which consume computation time that is significant relative to the purely numeric root-finding aspects. Hence any such hybrid symbolic-numeric approach would certainly need a (new) option to en/disable it, since fsolve is used in so many places in the Library. I also doubt that this could decently be enabled by default -- there would be just too many slowdown cases.

And there's not much good point in a rarely used new option name (to remember, and to remember to use sometimes) if it's also not difficult to attempt such a symbolic integration oneself, prior to calling fsolve. Adding a new option for a straightforward preliminary step (not itself direct part of the numeric root-finding algorithms) would not be good: a case of "optionitis".

@C_R Your later statements about plot are incorrect; it has no special evaluation rules and when passed f(x_0) that is evaluated up front by the kernel (with no special range knowledge getting used) and the integral result passed to plot as its argument (which then ends up calling int:-Numeric).

The differences in timing seen above relate to how the numeric computations and integrations are then performed. The fsolve command is much more particular about correctness and guarding for floating-point roundoff error (testing convergence, assurance that the result is actually a root, etc). For the examples above fsolve is taking longer than plot while performing fewer numeric integrations.

The timing differences shown above persist if operator-form calling sequence if used for both (as I mentioned), or if int is replaced by `evalf(Int(...))` with no special options.

I have not yet investigated the computation, but one guess is that it may be related to mishandling of bivariate limits.

If so, then I don't recall offhand seeing minimize/maximize changed to use the multivariate limit functionality new to Maple 2019. Of course I could be mistaken. But perhaps (in the absence of a supplied range) it's only considering the finite value at a saddle and -infinity.

Making this up now, I didn't check maximize yet,

restart;
u := (1+20230321)*x*y-(x^2+y^2)/2:
limit(u,[y=infinity,x=infinity]);
                 undefined

limit(u,[y=-infinity,x=-infinity]);
                 undefined

limit(u, x=infinity);
                 -infinity

limit(u, x=-infinity);
                 -infinity

It could turn out to be related to some other aspect of handling limits, or even something quite different.

What kind of plot do you want?

Do you want curves (listplot) of the real and/or imaginary parts separately? Do you want a pointplot of the pairs of real and imaginary parts of each number? Something else?

If I've made a mistake and offended anyone then I apologize. I won't touch any Question of the OP.

@chri69a9 I used a mix of using an external editor vi on the .mw file (to remove invalid Equation XML elements) and Open/Save using Maple 2023.0.

If you are using the green up-arrow and the Upload button in the popup dialog then you also need to use either the Insert Link or Insert Contents button within that same popup dialog.

What point is being made by this posting that would not be more appropriate as further discussion of this previous thread started by the same person?

First 78 79 80 81 82 83 84 Last Page 80 of 591