C_R

1960 Reputation

19 Badges

5 years, 279 days

MaplePrimes Activity


These are answers submitted by C_R

Nothing in the help system.

I got this from the web:

In Maple, debugger/no_output is a command-line option that can be used to suppress the output produced by the Maple debugger. When the debugger command is used to debug a Maple procedure or module, Maple will normally print debugging information to the console or worksheet as the program executes. However, by adding the no_output option to the debugger command, you can suppress this output.

I don't know if it makes sense. Apparently it's from Maple 2021 but all the links are broken.

Your are trying to solve this

solve([x[1]/2, (2*x[2])/9, -1], {x[1], x[2], x[3]});

Solve does not return an answer because of the thrid "equation" and the subsequent command throws an error.

Pasting your code snippet in 2D-Math and converting it to 1D-Math results in

`??` := 1;
`??` := 2;
`??` := 3;
`??` + `??`;
                            ?? := 1

                            ?? := 2

                            ?? := 3

                               6

All Babyloninan numerals are replaced by a double tofu (i.e. internaly represented by the symbol `??`). There are no individual representations for 𒐕, 𒐖 and 𒐗. Since the last assignment to `??`is 3 the sum becomes 6.

The fact that the Maple paraser converts some unicode characters to `??` means nothing else that not all characters are supported at the moment.

☹

Inkscape could be an option for vector graphics. Its open source and free.

restartM := LinearAlgebra:-RandomMatrix(6, 7, generator = 0 .. 1)
convert(M, listlist)
NonZeroInRow := `~`[nops](%)-map(numboccur, %, 0)

Matrix(%id = 36893490345080494788)

 

[[0, 1, 1, 1, 0, 1, 1], [0, 0, 0, 1, 1, 1, 0], [0, 0, 1, 1, 0, 1, 1], [1, 1, 0, 1, 1, 0, 0], [1, 1, 0, 0, 0, 1, 0], [1, 0, 0, 1, 0, 1, 0]]

 

[5, 3, 4, 4, 3, 3]

(1)


Maybe someone has an idea to replace the 0 in numboccur by an expression that is not equal zero. This would make the nops dispensable

Download NonZerosInRow.mw

Edit, this statement is wrong:  If you want to use eval you have to load the Standard package.
I can't give an explanation why the Simple environement can't deal with that simple expression.

Consider not loading any package for such simple task. The basic environment is quite powerfull. Simplify has to be used in this case instead of eval.

NULL

restart; interface(version)

`Standard Worksheet Interface, Maple 2023.0, Windows 10, March 6 2023 Build ID 1689885`

(1)

`α__1` = arctan(l__1*sin(alpha)/(l__1*cos(alpha)+l__2))

alpha__1 = arctan(l__1*sin(alpha)/(l__1*cos(alpha)+l__2))

(2)

l__1 = 50*Unit('mm'), l__2 = 40*Unit('mm'), alpha = 120*Unit('arcdeg')

l__1 = 50*Units:-Unit(mm), l__2 = 40*Units:-Unit(mm), alpha = 120*Units:-Unit(arcdeg)

(3)

eval(alpha__1 = arctan(l__1*sin(alpha)/(l__1*cos(alpha)+l__2)), [l__1 = 50*Units:-Unit(mm), l__2 = 40*Units:-Unit(mm), alpha = 120*Units:-Unit(arcdeg)])

alpha__1 = arctan(50*Units:-Unit(mm)*sin(120*Units:-Unit(arcdeg))/(50*Units:-Unit(mm)*cos(120*Units:-Unit(arcdeg))+40*Units:-Unit(mm)))

(4)

simplify(alpha__1 = arctan(50*Units:-Unit(mm)*sin(120*Units:-Unit(arcdeg))/(50*Units:-Unit(mm)*cos(120*Units:-Unit(arcdeg))+40*Units:-Unit(mm))))

alpha__1 = arctan((5/3)*3^(1/2))

(5)

with(Units)

Automatically loading the Units[Simple] subpackage
 

 

simplify(alpha__1 = arctan(50*Units[Unit](mm)*sin(120*Units[Unit](arcdeg))/(50*Units[Unit](mm)*cos(120*Units[Unit](arcdeg))+40*Units[Unit](mm))))

alpha__1 = arctan(5*sin(120*Units:-Unit(arcdeg))/(5*cos(120*Units:-Unit(arcdeg))+4))

(6)

with(Units[Standard])

eval(alpha__1 = arctan(l__1*sin(alpha)/(l__1*cos(alpha)+l__2)), [l__1 = 50*Units[Unit](mm), l__2 = 40*Units[Unit](mm), alpha = 120*Units[Unit](arcdeg)])

alpha__1 = arctan((5/3)*3^(1/2))

(7)

NULL

Download Units_simple_not_simplified.mw

until this bug get fixed: Do not load the Units[Standard] package. The default environment is already quite powerful.

 

To what I see, the first 3 mserver are always there. The fourth is the startup page. Any other mserver.exe corresponds to the tabs as you open files in Maple.

Kill for example No.5 and try to enter something in the tab. You will get a kernel lost message.

You could use the torus element for the wheel and the rectangle element for the trac. That’s the best I can think of.

Ideally for a train would be a conic element for the wheel that contacts a wedge of a cylinder for the rail. The first exists, the second does not. What is also not implemented is a force component for Cone and Cylinder (ideally for a wedge).

Instead of a cylinder a torus could be used to model a curved rail. Also here, a force component for a cone and a torus is missing.  

Alternatively, you could build your own custom component which is explained here.

 

When Maple freezes, does it show in the lower left corner "opening start page" or evaluating?

If so, let it run and wait.

I had the same when transitioning form Maple 2020 to 2021. I took up to 10 min for Maple to finish startup.

We (me & support) never found the reason.

I assume it was in combination with Windows file explorer and network drives that could not be mounted after system start up.

If I remember correctly it happend more frequently after a fresh system start.

Try also the "restart Maple server" button.

With Maple 2022 it dissapeared as it had come.

https://www.maplesoft.com/demo/streaming/clickablecalculusseries4-differentialequations.aspx

If for example alpha=4 in

abs(sin(4))

you will get

as output which evaluates to a positive value.

Otherwise, please send a link to the example.

Edit:

Have you compared the output with Norm command?

help("Physics,Vectors,Norm")

On my machine the kernel disconnects for n>2000.

Since the output is significantly smaller at n=2000, I assume that the kernel reaches a capacity limit for larger n before it can report this to the GUI (aborting the evaluation attempts) and communication is lost.

For n=2001, the disconnection happens after returning output which looks like that the kernel is still doing something in the background that keeps him too busy to respond in time to the GUI.

 

crash_feb_3_2023_with_parameter_n.mw

If you use typset in the following way, letters are rendered in roman if you enclose the letters in double quotes. This is the way Maple prints strings. Without quotation marks, the letters are interpreted as symbols and displayed in italic.
Most difficult was to get the power of 3 of a roman letter without using units.

 

The y-axis label below is a variant with units that renders not as you wanted in Mapleprimes, but correctly in Maple.

plot(x, x = 0 .. 1, labels = [typeset(A, "(kg / m", ``^3, ")"), typeset(A, "(", Unit('kg'), "/", Unit('m')^3, ")")])

 

NULL

NULL

NULL

NULL

My original idea not to code in MathML was to edit the labels with Nonexecutable Math and then copy/paste into a command, hoping to preserve the underlining MathML. I could not make it work.
(Detail: in the punctuation palette there is a divison symbol / labeled "sol" that preserves the inline format kg/m^3 in Nonexecutable Math mode).

Another idea (that I did not persue) is to use a MathML editor that generates the MathML codes which could then be pasted into a typeset statement.
@all: Could this be an option for more complex labels?

Download italic_and_normal_axislabel.mw

at the start of the new input line.

Edit: In the attached, I have also put a semicolon at the end of the line of input. I forgot to mention this.  In Math2d you can delete the multiplication symbol and it still works.

total := D^2/(alpha^2*mu^2)+D^2*exp((2*(-t+t1))*alpha*mu)/(alpha^2*mu^2)+D^2*exp((2*(-t+t1))*alpha*mu)/(alpha^2*mu^2)+D1*D/((alpha*mu*tau0+1)*alpha^2*mu^2)-(-alpha*mu*tau0*exp((-t+t1)*(alpha*mu*tau0+1)/tau0)+exp((2*(-t+t1))*alpha*mu))*D*D1/(mu^2*alpha^2*(alpha^2*mu^2*tau0^2-1))+(alpha*mu*tau0*exp((-t+t1)*(alpha*mu*tau0+1)/tau0)-exp((2*(-t+t1))*alpha*mu))*D1*D/(alpha^2*mu^2*(alpha^2*mu^2*tau0^2-1))-(-alpha*mu*tau0*exp((-t+t1)*(alpha*mu*tau0+1)/tau0)+exp((2*(-t+t1))*alpha*mu))*D*D1/(mu^2*alpha^2*(alpha^2*mu^2*tau0^2-1))+(alpha*mu*tau0*exp((-t+t1)*(alpha*mu*tau0+1)/tau0)-exp((2*(-t+t1))*alpha*mu))*D1*D/(alpha^2*mu^2*(alpha^2*mu^2*tau0^2-1))+D1*D/((alpha*mu*tau0+1)*alpha^2*mu^2)+D1^2/((alpha*mu*tau0+1)^2*alpha^2*mu^2)-(alpha*mu*tau0*exp(-(-t+t1)*(alpha*mu*tau0-1)/tau0)+alpha*mu*tau0*exp((-t+t1)*(alpha*mu*tau0-1)/tau0)-alpha^2*mu^2*tau0^2-1)*D1^2/(alpha^2*mu^2*(alpha^4*mu^4*tau0^4-2*alpha^2*mu^2*tau0^2+1))-((alpha*mu*tau0*exp(-(-t+t1)*(alpha*mu*tau0-1)/tau0)+alpha*mu*tau0*exp((-t+t1)*(alpha*mu*tau0-1)/tau0)-alpha^2*mu^2*tau0^2-1)*D1^2/(alpha^2*mu^2*(alpha^4*mu^4*tau0^4-2*alpha^2*mu^2*tau0^2+1))*(D1^2))/((alpha*mu*tau0+1)^2*alpha^2*mu^2)+2*D1*D/((alpha*mu*tau0+1)*alpha^2*mu^2)+D^2/(alpha^2*mu^2); r2r2 := %; total-r2r2

0

(1)

NULL

Download auto_simplify.mw

5 6 7 8 9 10 Page 7 of 10