Maple Tools

Maple Tools - Symbolic engine for SMath Studio. - Poruke

#121 Objavljeno: 24. 5. 2013. 17:33:52
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: Moderator

First and second order ODE examples.

ode1.pngode2.png

I do not know how to solve them in one step like. How to put sets - {} in the command?

>dsolve({D(y)(x)=x-y,y(0)=1},y(x))

Could someone give some help?

Regards,
Radovan
ode2.sm (13,69 KiB) preuzeto 1684 put(ova).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#122 Objavljeno: 24. 5. 2013. 19:54:08
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Updated. The document can not be saved. I don't know why.

plot([`in`[1], `in`[2], t=0..2*Pi], color=blue );

plot3d( `in`, x=-5..5, y=-5..5, scaling=constrained, style=patch,
orientation=[40,50], grid=[50,50], color=gray, axes=frame,
lightmodel=`light4`, projection=`normal`, shading=zgrayscale );

implicitplot3d( `in`=0, x=-2..2, y=-2..2, z=-2..2, grid=[50,50,50], orientation=[20,60],
axes=frame, lightmodel=`light4`, projection=`normal`, style=patchnogrid);

MapleWrapper_screen14.png MapleWrapper_screen15.png

F:=implicitplot3d( `in`[1]=0, x=-2..2, y=-2..2, z=-2..2, grid=[30,30,30],
style=patchnogrid ):

G:=plot3d(`in`[2], x=-2..2, y=-2..2, style=patch, color=white):

display({F,G}, orientation=[20,60], axes=box, lightmodel=`light2`,
projection=`normal`, labels=["X","Y","Z"], scaling=constrained,
tickmarks=[4,4,4] );

MaplePlot_screen1.png


[MATH]f(x;y;z)a^2*(x^2+y^2+z^2))^{-2}+(b^8*(x^8+y^8+z^8))^4-2[/MATH]

F:=implicitplot3d( `in`=0, x=-2.1..2.1, y=-2.1..2.1, z=-2.1..2.1,
grid=[50,50,50], style=patchnogrid ):

display({F}, orientation=[35,55], axes=box, lightmodel=`light4`,
projection=`normal`, labels=["X","Y","Z"], scaling=constrained,
tickmarks=[4,4,4] );

MaplePlot_screen0.png
Russia ☭ forever, Viacheslav N. Mezentsev
#123 Objavljeno: 25. 5. 2013. 03:50:17
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Wrote

I do not know how to solve them in one step like. How to put sets - {} in the command?

>dsolve({D(y)(x)=x-y,y(0)=1},y(x))

Could someone give some help?



MaplePlot_screen2.png MaplePlot_screen3.png
Russia ☭ forever, Viacheslav N. Mezentsev
#124 Objavljeno: 25. 5. 2013. 05:52:17
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: Moderator

Aha,...convert() was the magic word. Thank you
Strange, but this one was the only one successful

ode1.png

My other attempts in making plots and reproducing your pictures, issued an error about missing gif file in tmp folder. See the picture please

ode2-error.png

The problem of not saving pictures and SMat crash still remained.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#125 Objavljeno: 25. 5. 2013. 06:08:25
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Show me the log file: mvr5.txt.
Russia ☭ forever, Viacheslav N. Mezentsev
#126 Objavljeno: 25. 5. 2013. 06:19:05
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: Moderator

Wrote

Show me the log file: mvr5.txt.


Here it is. If you want me something in particular to try, just let me know.

Regards,
Radovan


mvr5.txt (192,04 KiB) preuzeto 1423 put(ova).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#127 Objavljeno: 25. 5. 2013. 06:40:59
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: Moderator

This one is after deleting mvr5.txt and trying to make a parametric 3dplot
3dplotparam.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#128 Objavljeno: 25. 5. 2013. 06:59:09
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Wrote

Wrote

Show me the log file: mvr5.txt.


Here it is. If you want me something in particular to try, just let me know.

Regards,
Radovan


Radovan, you have to change the maple-commands for each graph. In your example these commands are set incorrectly. I specifically show the commands. They need to be inserted into the settings form, as showed above.

1) Try this:

a := plot( `in`, t=0..20, x=-1.5..1.5, scaling=unconstrained, style=line,
color=blue, axes=box, labels=["t","x(t) "]):

b := coordplot(rectangular, [0..20, -1.5..1.5], linestyle=[7,7],
color=[gray,gray]):

display([a,b]);

2) projection=`normal must be projection=`normal`
Russia ☭ forever, Viacheslav N. Mezentsev
#129 Objavljeno: 25. 5. 2013. 08:04:10
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: Moderator

I tried your suggestion (just copy/paste) and calculation take quite long (did not wait for it to finish). Just used the simple one, and it worked (the first picture). It is good enough for me .

Tried one of your examples, and typed carefully as much as I could. I did not see any mistake - but the plot did not appear (the second picture)

ode2-good-1.png3dplotparam-1.png

Regards,
Radovan
mvr5.txt (265,75 KiB) preuzeto 1506 put(ova).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#130 Objavljeno: 25. 5. 2013. 08:14:41
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Try to add with(plots): to with.inc:
Citat

with(linalg):with(inttrans):with(plots):

Russia ☭ forever, Viacheslav N. Mezentsev
#131 Objavljeno: 25. 5. 2013. 08:26:25
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: Moderator

Wrote

Try to add with(plots): to with.inc:

Citat

with(linalg):with(inttrans):with(plots):



It worked . What was the catch?

3dplot-implicit.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#132 Objavljeno: 25. 5. 2013. 12:26:54
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: Moderator

Nice

ode2-boundary.png


ode2-boundary.sm (18,63 KiB) preuzeto 1716 put(ova).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 korisnika je svidelo ovu objavu
Вячеслав Мезенцев 25. 5. 2013. 19:39:00
#133 Objavljeno: 25. 5. 2013. 19:40:31
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

MaplePlot updated. Small imprоvements.

MaplePlot_screen4.png
Russia ☭ forever, Viacheslav N. Mezentsev
1 korisnika je svidelo ovu objavu
Radovan Omorjan 26. 5. 2013. 03:00:00
#134 Objavljeno: 26. 5. 2013. 02:59:31
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: Moderator

Just to confirm. The EMPTY PLOT is now working fine. No crash of SMath at the plot inserting

maple3d.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#135 Objavljeno: 26. 5. 2013. 04:20:20
Janusz

Janusz

7 svidjanja u 48 postova.

Grupa: User

Hello,

Heartily please for the prompt, how to check in Maple that two expressions are to themselves equal. For example whether the expression under variable a is such alone as the expression under variable b?

Regards,
Janusz
#136 Objavljeno: 26. 5. 2013. 06:26:32
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: Moderator

Wrote

Heartily please for the prompt, how to check in Maple that two expressions are to themselves equal. For example whether the expression under variable a is such alone as the expression under variable b?


I do not use maple to much (it is interesting and a fun using it in SMath ) , and someone else might give you a better solution - but this should work

[MATH=eng]e1a^2-1)*1/sqrt(a)[/MATH]

[MATH=eng]e2b-1)*(b+1)/sqrt(b)[/MATH]

[MATH=eng]maple(simplify(subs(a≡b,e1)-e2))=0[/MATH]

Regards,
Radoavn
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#137 Objavljeno: 26. 5. 2013. 07:32:54
Janusz

Janusz

7 svidjanja u 48 postova.

Grupa: User

Hi Radoavn,

Thank you, interesting solution, will try out it.

Regards,
Janusz
#138 Objavljeno: 27. 5. 2013. 01:10:51
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Updated. Still can't save region.

Prikaži spoiler



MaplePlot_screen5.png
MaplePlot. Example 8.sm (4,9 KiB) preuzeto 1725 put(ova).
Russia ☭ forever, Viacheslav N. Mezentsev
1 korisnika je svidelo ovu objavu
Radovan Omorjan 27. 5. 2013. 04:21:00
#139 Objavljeno: 27. 5. 2013. 02:22:01
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Thanks for the update.

I have still trouble with the basics. Example 2 does not work.

Here is what the log file says:

Prikaži spoiler



There are empty tmp files in the tmp dir:
tmp59BF.tmp
tmp5A0F.tmp
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#140 Objavljeno: 27. 5. 2013. 03:07:10
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

In your example:
[MATH]`in`x^2+y^2+z^2)-1[/MATH]

but expected:

[MATH]sys(el(`in`;1);el(`in`;2);2;1):sys((x^2+y^2+z^2)-1;0;2;1)[/MATH]

we get: `in`[1]="" , `in`[2]="" - empty values (because it is not a system) and `in`=(x^2+y^2+z^2)-1 (but is missing in script)

Must be:

Prikaži spoiler


MaplePlot_screen6.png

Citat

There are empty tmp files in the tmp dir:
tmp59BF.tmp
tmp5A0F.tmp

This is normal.
Russia ☭ forever, Viacheslav N. Mezentsev
1 korisnika je svidelo ovu objavu
Martin Kraska 27. 5. 2013. 15:50:00
  • Novi postovi
  • Nema novih postova