zenterix

310 Reputation

4 Badges

3 years, 98 days

MaplePrimes Activity


These are questions asked by zenterix

I am aware of the palette that has this symbol, but I want to be able to type it as this is way more efficient use of time.

How do we type it in?

Consider the system of two equations 

x+y=2

x*y=4

Let's try to solve this using Maple's solve command.

This seems at first glance like one solution, but actually it is two, which I see if I use evalf.

Solving the equations by hand I get two solutions

y=1+sqrt(3)*i, x=4/y

y=1-sqrt(3)*i, x=4/y

If I use evalf on these two solutions I get the same result as the two solutions using solve.

My question is where does the expression y=2* RootOf(_Z^2-_Z+1) come from?

By hand, seems to be the solution to y^2-2y+4=0.

I was just going through Chapter 4 - Basic Computations from the User Manual. I have a worksheet in Documenet mode where I put in the commands I see as I go through the Chapter.

I reached the part about using solve. I didn't know it was so easy to use the context menu to do things like solve numerically, use solve, etc. I typed in the equation x^3+2x-9=0 and tried a few of these options for solve. Many gave the answer 1.762496376, which is the real root.

Now, eventually, I wanted to see the two additional complex roots. But I never did.

Then I simply added a new line to the worksheet, copied over the equation, and tried the option solve directly. Now I see three solutions.

Next, I added yet another line and executed solve(x^3+2x-9=0) and got three solutions again.

What I don't understand is why the first line, even now, doesn't ever return the three solutions. I choose solve from the menu but it only returns the real root 1.762496376. 

Here is the exact worksheet I am using: 4_-_Basic_Computations.mw

There is a text in bold that says Solving Equations and Inequations and the problematic command is on the line after that. 

(once again, I was not able to insert the worksheet contents here, would also like to know why this never works for me).

Is there a way to see the Maple implementation of Runge Kutta 4th order method in dsolve?

By searching I found I can print the implementation of a procedure as follows

interface(verboseproc = 2)

print(dsolve)

But I'd like specifically to see the code for the method RK45.

I created a Github repository with files to reproduce the example that my question is based on.

I am using Grid:-Run to compute a 10000x3 matrix in each of 100 parallel runs. I then average the 100 matrices to obtain a final 10000x3 matrix, which I saved to an .m file.

It contains a variable called with the matrix.

Each row of the matrix is a 3d point, and the entire matrix represents a trajectory on a sphere. I'd like to display an animation of this trajectory. Now, my question is not about how to do this, but rather about the memory requirements necessary to do so.

I can plot trajectories with, say, 1000 points, but apparently 10000 requires too much memory.

The Github repository I linked to contains an example of all of this.

The worksheet matrixTest.mw reads the matrix from the .m file and reads some procedures defined in the .mpl file that are used for creating the animation data.

Then, a call to the procedure animateMatrices basically calls plots:-display to display the matrix as an animation.

I've been able to display the first 5000 rows of the matrix.

What type of memory is running out when I try to display the animation of the full 10000 rows?

Here is a screenshot of my Activity Monitor right before I get the

Error, out of memory error while processing result

First 7 8 9 10 11 12 13 Page 9 of 15