acer

32333 Reputation

29 Badges

19 years, 325 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

@charlie_fcl

Is there code in the Startup region of the worksheet? Are there any hidden inputs?

If neither, then could you show us the contents of your initialization file (supposing that it doesn't contain secret stuff)?

Your problematic worksheets (saved using Maple 2024) don't appear to contain much more than some stock examples. But none of us can tell all that's really in them without direct access to the acutal .mw worksheet files. Could you provide the actual worksheet files, instead of .pdf exports?

The most helpful way to proceed is to provide code and files, giving the best chance to reproduce and diagnose the problem.

@Ali Hassani 

The type-check against,

    specfunc(identical(x^2), sin)

will be true if it's a function call of sin, and all arguments being of type identical(x^2). That includes the case of no arguments at all.

The type-check against,

    specfunc(sin)

is the same as that against,

   specfunc(anything, sin)

where it will be true if it's a function call of sin and all the arguments are of type anything. Ie, any function call to sin. That includes the case of no arguments at all.

The type identical(...) is a check for an identical match, as the name suggests.

These are all described, close together on the structured types Help-page. There it states:   

identical(expr)

an expression identical to expr

 

| specfunc(f)

the function f with (possibly zero) arguments of any type

 

| specfunc(type,f)

the function f with (possibly zero) type arguments

@C_R If you're using that plaintext then you'd have to remove the errant `*` instances (which Carl has likely correctly surmised comes from transcription here of faulty 2D Input).

The OP does not provide actual worksheet attachments, which makes helping him unnecessarily awkward. It's not helpful.

@Alexandrakristensen24 I was unable (as yet) to recover that corrupted portion, which contained a faulty image portion.

Your attachment's faulty portion does seem to start at line 274 of the XML. But there are only 286 lines in the file. It's quite possible that your attachment doesn't contain much more data, and that the (nor properly saved) original was actually much larger.

@C_R 

As I'd already mentioned in my original Answer: the custom mechanism is faulty in M2024.0.

I've already reported that functionality regression.

@C_R Regardless of which command you might extend, you'll need a conditional to test for type `=`.

Otherwise you'll have weird errors when applying rhs,lhs accidentally to type algebraic, Matrix, piecewise, etc.

What version are using? Did you see the part of my Answer that explained that the `simplify/ext` mechanism doesn't work properly in Maple 2023.2 and Maple 2024.0?

The general mechanism worked in 2022.2.

Which are you using here?

@C_R It may be due to the special characters in the file name. The OP could try renaming it.

@C_R Experiment and the quest for understanding are great motivations. I was curious, is all. Thanks.

I'd have to study those other examples later.

@mmcdara 

I gave the Compile variant because I didn't know whether you wanted to repeat this operation on many Matrices or column choices.

If anything else has been compiled then part of the overhead is lessened. Also, you might be able to get a faster compilation without inmem=false, but that may depend on version and OS.

In later Maple versions there are also some variants using andseq (possibly with evalhf), which also allows for a quick bailout.

@nmacsai You can change the font for the color-bar's textplot values.

colbar_M2023_4.mw

[edit] In Maple 2024 such adjustments are directly possible via additional options, eg.
   colorbar=[barcaption = ..., labelfont = ... ]
see  ?plots,colorbar

@Ronan You're very welcome; I'm glad if it suits your purpose.

I'm not quite sure that I understand that screenshot, though. Was this elision mechanism used in that shot?

@nmacsai I forgot to ask whether the effect you wanted could not at all be accomplished with a shortened view option choice.

Yes, there is a way to decompose and reparse the output of InlinePlot, to get back to a plot structure.

But that mentioned zoom/scale is not part of a plot structure. It's only part of the XML markup of the actual worksheet. So reparsing from an InlinePlot's XML return back to an actual plot structure would not retain an such scaling/zoom level information.

If that scale/zoom (like with right-click manipulator) were a programmatic part of a plot structure itself then I'd have shown that way in your previous Question.

However, another possibility for getting a "zoomed" effect might be to use the viewpoint option with just a single frame.

note: please put your close followups on this topic as Comment/Reply in your earlier Question, or Branch from that, instead of spawning more wholly separated and unlinked Question threads for it.

For fun, here is the first example, but using the allsolutions option to get a result in terms of conditional relations.

(Sorry, this site doesn't render it so nicely.)

restart;

r := a + (b - a)*z/h:

x1 := sqrt(r^2 - y^2):


The so-called "collapsed" syntax for multiple integrals
allows easy use of the allsolutions option.

There are various piecewise instances in the following result,
involving various relations between a,b, & h.
 

simplify( int(1, [x=-x1..x1,y=-r..r,z=0..h], allsolutions) )
   assuming real;

-h*Pi*(-a^3+b^3*piecewise(a*h = h*(-b+a), 0, 1)+2*piecewise(0 < h, -2*a^3*(piecewise(b-a < 0, 0, 1)-1/2)*piecewise(-a*h/(-b+a) < 0, 0, 1)-piecewise(-b*h/(-b+a) < 0, 0, 1)*piecewise(a*h = h*(-b+a), 0, 1)*b^3+piecewise(b-a < 0, 0, 1)*(-2*b^3*piecewise(b*h/(-b+a) < 0, 0, 1)*piecewise(a*h = h*(-b+a), 0, 1)+b^3*piecewise(a*h = h*(-b+a), 0, 1)+a^3), h <= 0, -2*piecewise(a*h = h*(-b+a), 0, 1)*(piecewise(b-a < 0, 0, 1)-1/2)*b^3*piecewise(-b*h/(-b+a) < 0, 0, 1)-piecewise(-a*h/(-b+a) < 0, 0, 1)*a^3-2*piecewise(b-a < 0, 0, 1)*piecewise(a*h/(-b+a) < 0, 0, 1)*a^3-piecewise(-b+a < 0, 0, 1)*piecewise(a*h = h*(-b+a), 0, 1)*b^3+a^3*(piecewise(-b+a < 0, 0, 1)+2*piecewise(b-a < 0, 0, 1))))/(-3*b+3*a)


Download trip_int_exb.mw

First 40 41 42 43 44 45 46 Last Page 42 of 592