acer

32672 Reputation

29 Badges

20 years, 70 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

@Khair Muhammad Saraz I made two surfaces in each of my latest 3D plots.

Contrary to your apparent new claim, I did in fact use the approximate data for one of the surfaces, each time.

I stored the approximate data in Matrix MM. I used the plots:-surfdata command to render a surface using the data in Matrix MM. (In Matlab you showed using surf. That's similar to using surfdata in Maple.)

Can you see that my latest worksheets have a red exact surface as well as a blue approximate surface? Earlier you wrote that you wanted both. Can you see that the blue surface is constructed using the computed approximate data from your loop?

If you don't want them both together in the same plot then simply don't bundle them together with last display call. They're even already assigned to names which make it clear, Pexact and Papproximate.

This is my last response on this. You really should study the code and try to understand it and learn to program in Maple on your own. This is not unreasonable stuff. Try to understand properly what each part does.

ps. I think that storing the data in a Matrix (like MM) here is easier than storing it in tables (with that awkward copy each time through the loop). Using a Matrix makes it easier to plot afterwards, and (I expect) more understandable if you were to study it.

@nm Is this something (even for only some x...),

-sqrt(2)*EllipticF(sqrt(2)*sqrt(sin(x)/(1 + sin(x))), sqrt(2)/2)

@nm Multi-line comments have been available in 1D Input since Maple 13 (released, 2009).

It's not available in 2D Input.

ps. tangent: some people set their Maple prompt to (**) so that they can copy&paste to&from other plaintext locations without having to erase the prompt.

@Mathrookie94 You could remove the statement that assigned to Digits, and then restart using either the restart icon on the menubar or the restart command.

It's often useful to begin worksheets with the restart command (before your with calls). That way when you use the !!! icon on the menubar you get a fresh computation, ie. without interference from previous assignments to names.

As I wrote before the original worked for me without changing Digits, so there was already evidence that working precision was not the issue.

I wonder whether it might have something to do with "saved rtable" data, stored due to output.

It might be interesting to know whether it still occurs if you,
1) use the menubar to remove all output.
2) save
3) re-open, then execute

Another (less likely, IMO) possibility might be something related to the new kind of display of rtables (eg.Matrix), with the sliding pan funcitonality.

All this is supposing that it doesn't happen for other worksheets you make yourself, and that your installation is OK.

@Carl Love I tried fooling with interface(displayprecision), as well as Numeric Formatting, and also the GUI's Options->Precision. Wasn't able so far to get the reported effect, but who knows those mechanisms can be weird.

@Mathrookie94 

It might be worth checking whether your Gym:-QQplot procedure differs from mine.

What does this look like?

   showstat(Gym:-QQplot);

@Khair Muhammad Saraz In these atatchments you can simply change the N value (posint > 1) and re-execute.

Here are both surfaces, default style=patchcontour by surfdata for the N=7 approximate surface.

DQMSixth_2_accc.mw

And here are both surfaces, with style=surface for the exact surface. (Higher order interpolation to a finer grid is possible for the surface constructed from the approximate data, but perhaps not in the spirit of what you want.)

DQMSixth_2_ac_lininter.mw

It might be fun to wrap all the approximation computation in a procedure, compute & store for several N values, and display as an animation with the exact surface as background.

You are not being clear about how you want the "one 2d plot" to appear.

Construction of the 2D curves has already been show to you in a few attachments. You really ought to be able to put those into a single plot, along with the exact curves. This is your coursework/project, after all.

@Mathrookie94 It works as you expected, for me, without any change to Digits.

Do you have some custom initialization file? I don't know how to test which "version" of Gym I have.

worksheet_-_linear_reg_and_residuals_for_normal_distribution_ac2024.mw

@Mathrookie94 Try something like,

   Digits:=20:

at the start.

(I can't test easily, because you haven't provided the data.)

@Khair Muhammad Saraz You can now just change the N value, without other changes needed.

Check for mistakes.

DQMSixth_2_acc.mw

We cannot test the same example without the same data.

I already have a version of the Gym package (an add-on), but I don't know what you mean by, "...read the mean-value, mu". How did you get at the computed mu value?

What happens if you increase Digits, the working precision? Eg, Digits:=20 ?

@vv very nice. That's a graceful way to get the factored form.

sol := dsolve({diff(f(x), x) = a*f(x)^(2/3)+b*f(x), f(1) = c})

new := simplify(eval(sol, [a = 0.768e-1, b = -0.102e-1, c = 59]))

f(x) = -48.08619870*(exp(0.34e-2-0.34e-2*x)-2.070558790)^3

@Khair Muhammad Saraz Something like the following?

I just uncommented the line with a call to surfdata, from my earlier worksheet, and made a few adjustments to color, etc.

dq_code_1_acc2.mw

@Khair Muhammad Saraz Please put your close followups for this here, not in wholly separate new Question threads.

If nobody responds then perhaps you need to be much more clear about exactly what you want the plot(s) to represent.

Perhaps you just want the N final spacecurves and exact solutions, alongside each other in 3D? Or do you want those approximate spacecurves animated (by iteration number)?

Something else?

If it's so very important to you then why don't you take a few minutes to describe what you want explicitly, in detail? You still have not described what exactly you want.

First 45 46 47 48 49 50 51 Last Page 47 of 598