C_R

2220 Reputation

19 Badges

4 years, 272 days

MaplePrimes Activity


These are answers submitted by C_R

For the x-axis, there is an ugly but simple solution: add spaces.

This works for the y-axis when the label can be rotated (acceptable for words but not for symbols).

For the y-axis in your example, textplot works better.

yLabel:=plots:-textplot([-1,3,"y"], 'align'={'below', 'right'},font=["times","roman",10]):
p:=plot((x -> 1/abs(x))(x),x=-4..4):
plots:-display(p,yLabel, view = [-4 .. 4, 0 .. 3],labels=["                                                                        x",""])

You can use type to check if an expression is of tye equation and use it in an if statement in combination with a not command

https://www.maplesoft.com/support/help/Maple/view.aspx?path=type/equation&cid=507

Same for other types

Maple assumes that k and x in your expression are complex.

To get the expected ouput, assumptions on k and x are required

assume(x::real, k::real);
abs(exp(k*x*I));

or after restart

abs(exp(k*x*I));
(simplify(%) assuming (k::real, x::real));

or

abs(exp(k*x*I));
evalc(%);

which assumes that all variables are real valued

Edit: If you want less ticks on the axes, add the option tickmarks

plot(1/x, x = 1 .. 10, tickmarks = [5, 5])

More convenient is to select the plot with a right-click and go to axes, properties, tickmarks

 

If you want to plot points only:

  • With the plot command you can add the option numpoints=5 and change the the plotstyle to point (either by an option or the plot menu when the plot is selected)
plot(1/x, x = 1 .. 10, numpoints = 5, style = point)
  • Or: To plot points you can use the command plots:-pointplot in combiantion with a list of points you have to generate

The number of activations depends on the license bought.

For your tests, you can either contact support for a temporary additional license or install a test version from a website. Via support you might get an extended test period if Maplesoft is interested in your tests. This could be if the tests are extended and systematic (which seems to be the case).

Another way is to use an older version of Maple for the test but this might not be conclusive. 

Or subscribe for beta testing to get an addional license for tests.

Regarding your question why Maple is not providing an explicit solution:


Maple classifies this ode as separable

and applies

DEtools:-separablesol(ode)

with the solution

This solution does not satisfy the initial condition and therefore no solution is returned. The IC represents a singularity for this solution (not for your solution and not for vv's last solution).

Only if called with the implict option, c__1 can be determined

solve(dsolve(ode,implicit),{c__1})

The separation method leads to a dead end without a proposal where to go from there (e.g. series).
I had no time to check if DEtools commands could lead to the solutions from nn and vv. 


 

I only get the error with 2023 (from time to time). All on Windows 10.

By the way: 2022 uses considerably more time and memory.

interface(version)

`Standard Worksheet Interface, Maple 2018.2, Windows 10, November 25 2018 Build ID 1364888`

(1)

CodeTools:-Usage( DEtools:-symgen(ode));

memory used=10.28GiB, alloc change=364.97MiB, cpu time=5.97m, real time=6.79m, gc time=25.78s

 

interface(version)

`Standard Worksheet Interface, Maple 2019.2, Windows 10, November 26 2019 Build ID 1435526`

(2)

CodeTools:-Usage(DEtools:-symgen(ode));

memory used=19.75GiB, alloc change=338.66MiB, cpu time=12.38m, real time=13.79m, gc time=62.39s

 

interface(version)

`Standard Worksheet Interface, Maple 2020.2, Windows 10, November 11 2020 Build ID 1502365`

(3)

CodeTools:-Usage(DEtools:-symgen(ode));

memory used=28.45GiB, alloc change=416.93MiB, cpu time=18.74m, real time=20.33m, gc time=83.95s

 

interface(version)

`Standard Worksheet Interface, Maple 2021.2, Windows 10, November 23 2021 Build ID 1576349`

(4)

CodeTools:-Usage(DEtools:-symgen(ode));

memory used=53.43GiB, alloc change=355.87MiB, cpu time=15.76m, real time=15.26m, gc time=107.69s

 

interface(version)

`Standard Worksheet Interface, Maple 2022.2, Windows 10, October 23 2022 Build ID 1657361`

(5)

CodeTools:-Usage(DEtools:-symgen(ode));

memory used=86.76GiB, alloc change=175.63MiB, cpu time=51.35m, real time=48.15m, gc time=9.84m

 

interface(version)

`Standard Worksheet Interface, Maple 2023.2, Windows 10, November 24 2023 Build ID 1762575`

(6)

CodeTools:-Usage(DEtools:-symgen(ode));

memory used=8.62GiB, alloc change=110.76MiB, cpu time=4.37m, real time=4.10m, gc time=39.73s

 

Download trig_reduce_reply.mw

To your question: How did you learn Maple?

I learned pretty much as you did, through examples. Not so long ago, the descriptive part of the help pages was often unclear to me. This was due to several reasons. In particular, I did not understand or misinterpreted terms used in the descriptions. Take, for example, the term operator. If you've learned it from a simple programming language context (as I did), you most likely won't understand descriptions in a mathematical context or in Maple’s programming language context. There are many more nuances than you might expect. Maple help distinguishes these two contexts by providing definitions (which are mostly mathematical/logical and indicated by a D symbol) and help pages for Maple language elements indicated by a question mark in the Search Result Tab of the help system.

Some tips:

  1. Look up all terms in a sentence you do not understand and search first in the help system (then in other resources).
  2. Read slowly and stay focused. This may sound silly but helps to spot important nuances in phrases. Consider that the pages have been written with a mathematical mindset, striving for exactness and reduction to the essential. No fluff and no repetition.
  3. Do not overlook the “See also” links of a help page. They sometimes provide what you were searching for.
  4. Ask here if you have difficulties interpreting a description.
  5. Make yourself familiar with computer algebra specialties like the evaluation of expressions, types, operators, functions, and procedures. If you understand that the sine function in Maple is referred to as an elementary mathematical function but is of (Maple) type procedure, then you are not a newbie anymore.
  6. Walk through the table of contents to get an overview of what is contained in the help system. You will be amazed at how many things you discover for the first time.
  7. Be persitent. There will be a moment when the descriptions start making sense.

Quick learning?

Depends on your objectives. I sometimes feel that reaching the bottom is impossible. I would still recommend studying advanced examples and consulting help resources. That's a good mixture of improving your skills and understanding Maple. Maybe ?ProgrammingGuide is good to learn in a structured manner after you got started (which I assume you have).

Have a look also at these: ?StudyGuides, ?Student, ?worksheet,help,appsexamples.", ?examples,index

 

Hope this helps

The reason why the system is inconsistent can be found by anaylsing the equations.

The Jacobain of your equations reveals that equations 5 to 8 have the same pattern of unknowns than equation 1 to 4. They cannot contribute in the ellimination process. In ohter words the ` C: Costitutive Continuity Conditions:` do not provide additional information to the problem. You might want to check them and the Costitutive Boundary Conditions.

Attached is a manual way of solving sets of equations which I use to analyse and to solve by hand in cases where solve cannot find a solution (without addtional guidance) or provides large output.

Timoshenko_Beam-1_reply.mw

 

If you mean equation labels within text passages, the answer is no. It seems to require a substantial rework of the current implementation of equation labels.

What you could do alternatively to refer to equations inside text passages is using document blocks and hidden variable names. Here is an example

Labeling_inside_text_passages.mw

KernelConnection Server 1 corresponds to the blank document Maple that opens after start up.

You can shut this server down either by closing the document or by killing the first mserver.exe in the task manager process list (if you use windows 10 or above). If you opt for the second choice the document is still open in the GUI but not working as normal. Sometimes you get a message that the server was disconnected from the GUI.

If you kill server 2 and create a new document that uses server 2 you end up in a situation shown bellow (startup page turned off)

The GUI opens a new window (pretending a connection to server 2) but no server is connected.

You can continue working by creating a new document with a new math engine but then all Maple processes have disappeared from the task manager.

In a nutshell, Server 2 is special and serves at least for the purpose that mservers are listed in Windows task manager correctly.

If you do not kill mservers server 2 is allways available. After closing a document connected to server 2 all declared variables are still there (connect a new document and check the variables palette)

Plot annotations allow you to retrieve cursor positions. See here

https://www.maplesoft.com/support/help/maple/view.aspx?path=plot%2Fannotation

For me it looks like that dsolve has a kind of remember functionality which is independent from remember tables and cache (forget did not work on dsolve). It could be that remembering results depends on the differential equations.  

And yes: The text "calling dsolve with the ode" is missleading. It should rather be "with the arguments"

dsolve(diff(y(x), x, x) = 4*diff(y(x), x) - y(x) - 3*x + 1, y(x));

 

Works for sums

2*A*B/(A*m+m)+C^2+D^2;

convert([op(%)],Vector);
expand~(numer~(%)/A);
collect((x->1/x)~(expand~(denom~(%%)/A)),m);
(%.%%)assuming real;

By coincidence, I found what you were looking for in the layout palette.

Simply select whatever is selectable with the mouse and click on one of the layout brakets.

Your can make them your favorites for easier access as I have done here

2 3 4 5 6 7 8 Last Page 4 of 12