Maple 2022 Questions and Posts

These are Posts and Questions associated with the product, Maple 2022

I have some lecture notes and examples that suddenly appears to be corrupted. I am getting the following error code when trying to open the file: "There was a problem in the loading process, you worksheet may be incomplete."

I've tried the following trouvleshooting:

- Close and reopen Maple

- Restarting computer

- Tried different computer

note: I have no backup files as I do not have autosave switched on.

I have also tried looking into the solution posted on a previous question on this site (https://www.mapleprimes.com/questions/235363-How-To-Fix-Corrupted-Maple-File), i.e.  changing the file format to.xml and making changes but with no luck :(

Is anyone able to help me fix it and un-corrupt this file:

Lecture_2_-_notes.mw

How to find the dispersion relation (9). Although I calculated the dispersion relation (see Eq. (3) in DR_1.mw), it is not consistent as in the image. 

 

Solving differential equations, Maple sometimes unfortunately returns the solution in an utterly  unusable form I never encountered a use for.

As an example a solution was found assuming separation of variables. Maple returns the following solution,

X(ts) = DESol({diff(_Y(ts), ts, ts) + (a^4*m^2*cos(ts)^4 etc. etc. etc.}, {_Y(ts)})

Is there a command where I can just get the argument of the solution, namely the differential equation diff(_Y(ts),ts,ts) + etc  ?  or even better as diff(X(ts),ts,ts) + etc   as I intended and expected it to be without the silly and unnecessary proxy variable _Y(ts) ?

It is such a pity that Maple return these results not as a differential equation in F2(ts), but gives the result in a proxy variable which isutterly unnecessary.

Anyway, if anyone knows a command just to get the argument of the solution above to get rid of all the unnecessary and proxy structure, I will appreciate it as I currently copy the solution and redefine it, which can introduce errors and destroys the generality of the document.

Hi everyone!

I am trying to count the number of operations (addition, subtraction, multiplication, division) in object "A".  I have donea lot of searching around, but haven't been able to find out how to do this.  Some help would be appreciated!

Count_the_number_of_operations_in_A.mw

Hi everyone!

I am trying to build a matrix using for loops.  I have been unable to construct a matrix using one "double" for loop using variables i and j.

Instead, I have 5 "single" for loops.  Could someone show me how to do this using a "double" loop over i and j (rows and colums)?

Thanks so much!

How_to_do_this_using_one_double_loop.mw

Hi,

When I enter this command into maple and press enter, nothing is produced.  That's the "first" problem.  However, what I am trying to do is to figure out how many calculations (multipication, addition, subtraction, division) are performed for each variable that "solve" is designed to solve.  Basically, how many math operations are performed when calculating A?

Thanks for your help!

Count_operations.mw

Hello

in this example Untitled.mw Maple 2022 on MacOs  'finds' a minimum bigger than the maximum.

It looks like something is wrong...

Best Nicola

So I have this Maple document that I worked on yesterday, and now when I open it it just opens as the start-up screen where I can choose between document and worksheet mode. I can see that the file is much larger (900 kb) than an empty document, so it should definitely have the data still in there, but opening it with a text editor I couldn't manage to fix my issue. Does anyone have any tips? I have a back-up of the file (from the restore backup menu), but most of the content is not there, so it would be very helpful to get this one fixed.

Exercises.mw
Thanks in advance, 
Kristian.

Hi everyone, I am looking for help, regarding the solution of nonlinear ordinary differential equations numerically. I have explained my problem in my Maple worksheet. Could anyone please help me in this regard?

Help.mw

Below is the code in Maple 2022, and then I describe the problem.
restart;
with(plots);
a := 0.5;
j := BesselJ(0, sqrt(2*I)*sqrt(x^2 + y^2)*a)/BesselJ(0, sqrt(2*I)*a);
A := sqrt(Re(j)^2 + Im(j)^2);
densityplot(A, x = -1 .. 1, y = -sqrt(-x^2 + 1) .. sqrt(-x^2 + 1), grid = [68, 68], style = patchnogrid, scaletorange = 0 .. 1);

 

Thus, I have a real function of two variables: $A(x, y)$. At zero it is minimal (value 0.996). At the boundary of the unit circle it is maximal with a value equal to 1. In theory, scaletorange = 0 .. 1 should give a picture with almost perfectly white everywhere in the circle since the function values ​​are very close to 1. However, both with scaletorange and without it, the command produces a picture with a significantly dark circle in the center...

Since the temporal term disappears from the denominator for any values of the parameters, I am puzzled. Why is this happening? It seems I might be missing something. When I consider one of the terms (named 'opnumeric') in the denominator and assign parametric values, the temporal term is present. However, when looking at the whole expression, the temporal term is absent in the denominator (named 'den1numeric'). How can this be resolved? numericden.mw

Is it possible to  convert an existing document in worksheet mode to document mode in Maple22 ?

It seems you can only select either at creation of document but not convert documents already existing.

I have multiple questions on how Units[TestDimensions] works from reading the Maple documentation. I will use this thread to ask them.

My first question regards the difference between Unit(expr) and units inserted using shortcut (CMD+SHIFT+U) on a mac?

restart

Automatically loading the Units[Simple] subpackage
 

 

What is the difference between the following two commands?

Units:-TestDimensions(x*Unit('m')+y*Unit('s'), output = dimensions)

{x::(length^(-1+_t3[7, 1])*mass^_t3[7, 2]*time^_t3[7, 3]*electric_current^_t3[7, 4]*thermodynamic_temperature^_t3[7, 5]*amount_of_substance^_t3[7, 6]*luminous_intensity^_t3[7, 7]*currency^_t3[7, 8]*amount_of_information^_t3[7, 9]*logarithmic_gain^_t3[7, 10]), y::(length^_t3[7, 1]*mass^_t3[7, 2]*time^(-1+_t3[7, 3])*electric_current^_t3[7, 4]*thermodynamic_temperature^_t3[7, 5]*amount_of_substance^_t3[7, 6]*luminous_intensity^_t3[7, 7]*currency^_t3[7, 8]*amount_of_information^_t3[7, 9]*logarithmic_gain^_t3[7, 10]), (x*Units:-Unit(m))::(length^_t3[7, 1]*mass^_t3[7, 2]*time^_t3[7, 3]*electric_current^_t3[7, 4]*thermodynamic_temperature^_t3[7, 5]*amount_of_substance^_t3[7, 6]*luminous_intensity^_t3[7, 7]*currency^_t3[7, 8]*amount_of_information^_t3[7, 9]*logarithmic_gain^_t3[7, 10]), (y*Units:-Unit(s))::(length^_t3[7, 1]*mass^_t3[7, 2]*time^_t3[7, 3]*electric_current^_t3[7, 4]*thermodynamic_temperature^_t3[7, 5]*amount_of_substance^_t3[7, 6]*luminous_intensity^_t3[7, 7]*currency^_t3[7, 8]*amount_of_information^_t3[7, 9]*logarithmic_gain^_t3[7, 10]), (x*Units:-Unit(m)+y*Units:-Unit(s))::(length^_t3[7, 1]*mass^_t3[7, 2]*time^_t3[7, 3]*electric_current^_t3[7, 4]*thermodynamic_temperature^_t3[7, 5]*amount_of_substance^_t3[7, 6]*luminous_intensity^_t3[7, 7]*currency^_t3[7, 8]*amount_of_information^_t3[7, 9]*logarithmic_gain^_t3[7, 10])}

(1)

Units:-TestDimensions(2*Unit(m)+y*Unit(s), output = dimensions)

{y::(length/time), (y*Units:-Unit(s))::length, (2*Units:-Unit(m)+y*Units:-Unit(s))::length}

(2)

NULL

I think my question is what is the difference between inserting units using CMD+SHIFT+U on a mac, which generates the units as seen in the first command, versus using Unit(expr) as in the second version of the command?

Download Units_-_TestDimensions.mw

I read in the programming guide that to print the body of Maple library commands we set the Maple interface variable `verboseproc` to 2 then use the print command passing in the procedure we're interested in as argument.

Built-in kernel commands are compiled in machine code and not written in Maple language so we cannot view their definitions.

According to the guide, if we try to print such procedures we will see that the procedure has only an `option builtin` statement and no visible body.

If I try to view `Units:-TestDimensions`, as follows

```interface(verboseproc=1);
print(Units:-TestDimensions);

```

then what I see is

In this case there isn't the `option builtin` but neither is there a visible body.

Is this procedure built-in or is there a way to see the code?

1 2 3 4 5 6 7 Last Page 1 of 39