acer

32562 Reputation

29 Badges

20 years, 27 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

@nl4l1f3 Please note that the procedure P adjusts what you originally called Ncr by the Ncr0 scaling factor.

And that's what gets put in the 3rd column of Matrix M, although the heading of that column is "Ncr". You could easily remove that scaling from P by, if you'd like.

I figured that would be somewhat easier for you than if I'd left it out of P and you wanted to add it later -- because Ncr0 depends on A's value.

@dharr I wrote, "...when the D(...) comes back unevaluated."

I also wrote, "FWIW", because I thought it maybe worth mentioning in this context. You'd mentioned using fdiff in some check.

But for this example D actually computes a derivative (operator) and does not return unevaluated. So your evalf(D(...)(...)) example is just using that computed operator's internal formula, not fdiff. No contradiction with what I wrote.

Sorry if it sounded as if I was stating that fdiff was necessarily in play here. I mentioned it only because you had cited it relating to a possible check.

With uneval quotes your example will call fdiff via the mentioned hook. But the finite differencing computation can have a hard time too close to zero here.

restart

f := proc (Gamma) options operator, arrow; RootOf(8*_Z^4+12*Gamma*_Z^3+(5*Gamma^2-4)*_Z^2-4*Gamma*_Z-Gamma^2) end proc

evalf((('D')(f))(0.1e-4)); fdiff(f, [1], [0.1e-4])

-.2499973484

-.2499973484

evalf((('D')(f))(0.1e-8)); fdiff(f, [1], [0.1e-8])

70710.30314

70710.30314

Digits := 15

15

evalf((('D')(f))(0.1e-7)); fdiff(f, [1], [0.1e-7])

-.249999997348350

-.249999997348350

Download D_fdiff_ex.mw

@dharr FWIW, evalf(D(...)(numericvalue)) is a hook into fdiff, eg. when the D(...) comes back unevaluated.

@MaPal93 MakeFunction is just another name for the unapply command, new in Maple 2023. You can replace it by the word unapply in your Maple 2022.
MaPal93approx_M2022.mw

You could upload and attach a worksheet that shows your progress so far. For that you could use the green up-arrow in the Mapleprimes editor.

That would allow others to suggest looping/seq/Matrix-initializer/etc solutions, with less unnecessary guesswork, esp. with regard the nature of your function.

Would you also be interested in a 3d plot of the surface, ie. Ncr as a function of A and B?

You could upload and attach a worksheet.

@vv I get those exact sames results using either Maple 18.02 or Maple 2018.2.

@mmcdara 

You wrote in your worksheet, "The fact the OP did not wanted the "big red block" was for aesthetic reasons, not to remove a spurious pattern." But that does not necessarily follow from the text and titles of the original Question's and the OP's first response to your Answer. It might be true, but the text from the OP does not imply it.

What was actually given includes, "Im trying to replicate a shape in maple but everytime i plot it i get a big red block of line and i don't know why." and, "How do i remove the big red block i get when using multiple variable piecewise Implicitplot?"

The OP asked how to remove the red block. I gave a way that did that successfully. I know how and why it worked, and I also know why I did not use some particular choices of numeric values for the default; that was not fortune -- I also already knew why some close approaches do not work quite the same, especially (but not only) w.r.t. borders.

I also answered the given question about why the red block happens.

@BekkiRR The .gif file that Maple exports is an animated gif. It plays in most image viewers.

There seems to be some hints about using such in PowerPoint, eg. here.

(Much more involved might be exporting each frame as separate static image files, then using a 3rd party application to combine into some video format...)

@C_R Historically this kind of thing can be related to one or more of several different factors, eg.
- operating system
- video card drivers
- resolution mode
- anti-aliasing (Tools->Options-Font anti-aliasing)
- typesetting level

@BekkiRR 

Dynamisches_Modell_Final_filled_conts_ac.mw

And here is an alternate route,

Dynamisches_Modell_Final_filled_conts_acc.mw

This surface with contours looks less patchy in the actual Maple GUI. And the animation doesn't cycle (unless you use the plotting menu to make that happen).

@BekkiRR 

The following attachment is done in Maple 2021.2.

I was unable to download your worksheet, so I made up my own surface function. If you still cannot get it to work then you could upload and attach your problematic worksheet here, using the green up-arrow in the Mapleprimes editor menu.

Increasing the number of frames is one way to slow down the animation.

anim_ex_2021.mw

@Carl Love I asked above whether the OP wanted a way to inertly represent the operation and later get its value, but without an answer.

@Mike Mc Dermott Sorry, I don't see an attachment.

@Mike Mc Dermott 

Using the main menubar,
   View -> Palettes -> Show Palette
will display the submenu with all the available palettes. Not all are visible by default.

@Mike Mc Dermott What do you mean, explicitly, when you write, "...I would like the simplify function to make use of the parallel operator to simplify an expression such as EQ1 into form of EQ2."?

The expression shown in the image beside "Eq 1" in your Question is not mathematically equal (ie. not any reformulation) of this result which attains from your two lines of code for constructing "EQ2".

`//` := (R1, R2) -> R2*R1/(R1 + R2):

`//`(R1, R2)*`//`(R3, R4);  # EQ 2

R2*R1*R4*R3/((R1+R2)*(R3+R4))

Download EQ2.mw

Could you please show us, explicitly with Maple input code or notation the target form into which you want the expression in the "Eq 1" image to be changed?

First 53 54 55 56 57 58 59 Last Page 55 of 595