Maple Tools - Symbolic engine for SMath Studio. - Сообщения
#161 Опубликовано: 02.06.2013 00:01:21
Updated. Animation added.
[albumimg]192[/albumimg] [albumimg]193[/albumimg]

R:=`::R`: # R-radius of the large circle
r:=`::r`: # r-radius of the small circle
N:=`::N`: # N-number of frames of animation
A:=plot([R*cos(t),R*sin(t),t=0..2*Pi],color=blue,thickness=2):
B:=seq(plottools[disk]([(R-r)*cos(2*Pi*k/N),(R-r)*sin(2*Pi*k/N)],r,
color=yellow),k=1..N):
C:=seq(plottools[disk]([(R-r)*cos(2*Pi*k/N)+r*cos(2*Pi*k/N-R*2*Pi*k/r/N),
(R-r)*sin(2*Pi*k/N)+r*sin(2*Pi*k/N-R*2*Pi*k/r/N)],r/15,color=red),k=1..N):
F:=seq(plot([(R-r)*cos(t)+r*cos(t-R*t/r),(R-r)*sin(t)+r*sin(t-R*t/r),
t=0..2*Pi*k/N],x=-R..R,y=-R..R,color=red,thickness=2),k=1..N):
for k from 1 to N do E[k]:=plots[display](A,C[k],B[k],F[k]); od:
plots[display]([seq(E[k],k=1..N)],insequence=true,scaling=constrained,
view=[-R-1..R+1,-R-1..R+1]);
r:=`::r`: # r-radius of the small circle
N:=`::N`: # N-number of frames of animation
A:=plot([R*cos(t),R*sin(t),t=0..2*Pi],color=blue,thickness=2):
B:=seq(plottools[disk]([(R-r)*cos(2*Pi*k/N),(R-r)*sin(2*Pi*k/N)],r,
color=yellow),k=1..N):
C:=seq(plottools[disk]([(R-r)*cos(2*Pi*k/N)+r*cos(2*Pi*k/N-R*2*Pi*k/r/N),
(R-r)*sin(2*Pi*k/N)+r*sin(2*Pi*k/N-R*2*Pi*k/r/N)],r/15,color=red),k=1..N):
F:=seq(plot([(R-r)*cos(t)+r*cos(t-R*t/r),(R-r)*sin(t)+r*sin(t-R*t/r),
t=0..2*Pi*k/N],x=-R..R,y=-R..R,color=red,thickness=2),k=1..N):
for k from 1 to N do E[k]:=plots[display](A,C[k],B[k],F[k]); od:
plots[display]([seq(E[k],k=1..N)],insequence=true,scaling=constrained,
view=[-R-1..R+1,-R-1..R+1]);
[albumimg]192[/albumimg] [albumimg]193[/albumimg]
Russia ☭ forever, Viacheslav N. Mezentsev
1 пользователям понравился этот пост
ioan92 02.06.2013 02:53:00
#162 Опубликовано: 02.06.2013 01:57:14
Good work uni
I've noted the "Export" button was added (maybe it was here but I missed it). This can be used to save the plot in the GIF format, animated or not, like the SMath's base plots.
I suppose copying the plots from one worksheet to another will be fixed as well as soon as the plot saving fix will work.
Regards,
Radovan

I've noted the "Export" button was added (maybe it was here but I missed it). This can be used to save the plot in the GIF format, animated or not, like the SMath's base plots.
I suppose copying the plots from one worksheet to another will be fixed as well as soon as the plot saving fix will work.
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#163 Опубликовано: 02.06.2013 03:27:53
Viacheslav,
Thank you for the new version of MapleWrapper plugin. This is really impressive to have so beautiful tool like your plugin in SMath Studio. Once again thank you heartily.
Regards,
Janusz
Thank you for the new version of MapleWrapper plugin. This is really impressive to have so beautiful tool like your plugin in SMath Studio. Once again thank you heartily.
Regards,
Janusz
#164 Опубликовано: 02.06.2013 06:42:13
Hello,
I know how to dissolve one differential equation of the any degree using MapleWrapper plugin. But how to dissolve the system of ODE using MapleWrapper, this unfortunately I do not know. Please for the help.
I tried in different ways to reach the result, however ineffective.
From above heartily thank you for your help.
Regards,
Janusz
I know how to dissolve one differential equation of the any degree using MapleWrapper plugin. But how to dissolve the system of ODE using MapleWrapper, this unfortunately I do not know. Please for the help.
I tried in different ways to reach the result, however ineffective.

From above heartily thank you for your help.
Regards,
Janusz
#165 Опубликовано: 02.06.2013 15:38:15
WroteHello,
I know how to dissolve one differential equation of the any degree using MapleWrapper plugin. But how to dissolve the system of ODE using MapleWrapper, this unfortunately I do not know. Please for the help.
I tried in different ways to reach the result, however ineffective.![]()
From above heartily thank you for your help.
Regards,
Janusz
I am not quite sure this was correctly solved using Maple
Regards,
Radovan
odesystem.sm (9 КиБ) скачан 72 раз(а).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#166 Опубликовано: 03.06.2013 08:16:08
Hello Radovan,
Thank you for these examples. I think that I know already where I made mistakes. Thank you also for your kind - already several times you helped me.
Regards,
Janusz
Thank you for these examples. I think that I know already where I made mistakes. Thank you also for your kind - already several times you helped me.
Regards,
Janusz
#167 Опубликовано: 03.06.2013 09:31:47
You are welcome Janusz
And do not hesitate to ask, as I always do
Regards,
Radovan

And do not hesitate to ask, as I always do
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#168 Опубликовано: 04.06.2013 12:02:24
Hello,
Make calculations in MapleWrapper must be record the tangent function as: "tan" what it is visible on the first picture. To closing of the file and his repeated opening SMath Studio changes the function tanges from the record: "tan" - required through MapleWrapper, on "tg", and in the this moment MapleWrapper cannot make calculations because it has implemented the tangent function as "tan" and not "tg" as in SMath Studio in the this moment - look the second picture. Well would be to standardize this mark of the tangent function in MapleWrapper and SMath Studio.
Regards,
Janusz
Before save:

After open:

Make calculations in MapleWrapper must be record the tangent function as: "tan" what it is visible on the first picture. To closing of the file and his repeated opening SMath Studio changes the function tanges from the record: "tan" - required through MapleWrapper, on "tg", and in the this moment MapleWrapper cannot make calculations because it has implemented the tangent function as "tan" and not "tg" as in SMath Studio in the this moment - look the second picture. Well would be to standardize this mark of the tangent function in MapleWrapper and SMath Studio.
Regards,
Janusz
Before save:
After open:
#169 Опубликовано: 04.06.2013 12:16:39
I think this is a bug (Smath Studio, not mine). The same works and for cot(). You can define the function tg():=tan() and it should work.
The names of the trigonometric functions depends on the settings of the program. I consider them.
The names of the trigonometric functions depends on the settings of the program. I consider them.
Russia ☭ forever, Viacheslav N. Mezentsev
#170 Опубликовано: 04.06.2013 12:25:54
Hello Uni,
Thank you for explanations and the council.
Regards,
Janusz
Thank you for explanations and the council.
Regards,
Janusz
#171 Опубликовано: 04.06.2013 13:00:28
#172 Опубликовано: 04.06.2013 13:37:21
Viacheslav,
This is very instructive and surprising
example. My congratulations! Thank you very much!
Regards,
Janusz
This is very instructive and surprising

Regards,
Janusz
#173 Опубликовано: 06.06.2013 13:19:28
Hello!
Please for the explanation why I receive two different results as this is visible on the example below:

Regards,
Janusz
Where is the error.sm (7 КиБ) скачан 60 раз(а).
Please for the explanation why I receive two different results as this is visible on the example below:
Regards,
Janusz
Where is the error.sm (7 КиБ) скачан 60 раз(а).
#174 Опубликовано: 06.06.2013 13:45:19
There is no error. This behavior depends on the relative positions of the expressions on the sheet. When you put the definition of x above of a function call, the variable x in the expression solver becomes zero.
[albumimg]199[/albumimg]
[albumimg]199[/albumimg]
Russia ☭ forever, Viacheslav N. Mezentsev
#175 Опубликовано: 06.06.2013 13:54:16
Hello Uni,
Thank you for the explanation. The first time I meet with such by chance.
Regards,
Janusz
Thank you for the explanation. The first time I meet with such by chance.
Regards,
Janusz
#176 Опубликовано: 06.06.2013 14:20:16
Uni,
I cannot obtain such result as you. Can I ask you for the source file of your results.
[albumimg]200[/albumimg]
Regards,
Janusz
I cannot obtain such result as you. Can I ask you for the source file of your results.
[albumimg]200[/albumimg]
Regards,
Janusz
#177 Опубликовано: 06.06.2013 14:32:29
I Installed MapleWrapper from the Online Gallery
It seems Maple is working fine, but, unfortunately, MaplePlot can not produce a plot for me. There are still "empty" plots there, in spite of inserting the plotting text inside them
.
I hope I did not do something wrong.
Regards,
Radovan
mvr5.txt (8 КиБ) скачан 50 раз(а).

It seems Maple is working fine, but, unfortunately, MaplePlot can not produce a plot for me. There are still "empty" plots there, in spite of inserting the plotting text inside them

I hope I did not do something wrong.
Regards,
Radovan
mvr5.txt (8 КиБ) скачан 50 раз(а).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#178 Опубликовано: 06.06.2013 14:46:01
Not so fast
There's a bug. This is a test version for the new version SMath Studio. I'll combine Maple and MaplePlot regions.

Russia ☭ forever, Viacheslav N. Mezentsev
1 пользователям понравился этот пост
Radovan Omorjan 06.06.2013 15:36:00
#179 Опубликовано: 07.06.2013 11:32:03
WroteThere is no error. This behavior depends on the relative positions of the expressions on the sheet. When you put the definition of x above of a function call, the variable x in the expression solver becomes zero.
[albumimg]199[/albumimg]
Hello,
Right now I noticed, that the power in the calculation of the value t (0) at the end of your sheet is positive. From here the conclusion: there is the error because the value t(0) have to be zero. The value x equal zero is given at the end because here I pass to numerical calculations.
If I am wrong please for the explanation.
Regards,
Janusz
#180 Опубликовано: 07.06.2013 13:13:56
When you are trying to calculate the last expression the maple() function takes the following expression (see mvr5\mvr5.txt):
07.06.2013 23:02:12 [->] solve({(0=(77/10000*ln({((77/10000+772893421/100000000000000*t*715*cos({(Pi/4)}))/77/10000)}))/772893421/100000000000000)},t)
07.06.2013 23:02:12 [->] C:\Temp\tmp1B5E.tmp:
interface(quiet=true);
with(linalg):with(inttrans):with(plots):
writeto("C:\\Temp\\tmp1B5F.tmp"):
smath_line := proc() local i: for i from 1 to nargs - 2 do args[i]; od: end:
smath_sum := proc() if nargs = 1 then sum( args[1] ); elif nargs = 2 then sum( args[1], args[2] ); elif nargs = 4 then sum( args[1], args[2] = args[3] .. args[4] ); fi: end:
smath_product:= proc() if nargs = 1 then product( args[1] ); elif nargs = 2 then product( args[1], args[2] ); elif nargs = 4 then product( args[1], args[2] = args[3] .. args[4] ); fi: end:
smath_int := proc() if nargs = 2 then int( args[1], args[2] ); elif nargs = 4 then int( args[1], args[2] = args[3] .. args[4] ); fi: end:
smath_diff := proc() if nargs = 2 then diff( args[1], args[2] ); elif nargs = 3 then diff( args[1], args[2] $ args[3] ); fi: end:
smath_sys := proc() { args[i] $ i = 1 .. nargs - 2 }; end:
smath_el := proc() args[1][ args[2] ]; end:
smath_mat := proc()
local i, j, out:
out := [ args[j] $ j = 1 .. args[ nargs ] ]:
for i from 2 to args[ nargs - 1 ] do
out := out, [ args[j] $ j = ( i - 1 ) * args[ nargs ] + 1 .. ( i - 1 ) * args[ nargs ] + args[ nargs ] ]:
od:
convert( [ out ], array );
end:
smath_submatrix := proc() submatrix( args[1], args[2] .. args[3], args[4] .. args[5] ); end:
ans := \
solve(((0=(77/10000*ln((((77/10000+772893421/100000000000000*t*715*cos\
(((Pi/4))))/77/10000))))/772893421/100000000000000)),t):
if ( whattype( ans ) = `exprseq` ) then
convert( convert( cat( `mat(`, substring( convert( [ans], string ), 2..-2 ), `,`, nops( [ans] ), `,1)` ), string ), symbol );
elif ( whattype( ans ) = `set` ) then
convert( convert( cat(`mat(`,substring(convert(map2(op,2,[ans[i]$i=1..nops(ans)]),string),2..-2),`,`,nops(ans),`,1)`), string ), symbol );
elif ( whattype( ans ) = `symbol` ) then
convert( convert( eval( ans ), string ), symbol );
elif ( whattype( ans ) = `series` ) then
convert( convert( ans, polynom) , symbol );
elif ( whattype( ans ) = `string` ) then
convert( ans, symbol );
else
convert( convert( ans, string ), symbol ); fi;
quit:
07.06.2013 23:02:12 [<-] C:\Temp\tmp1B5F.tmp:
1399999986000000000/10047614473*2^(1/2)
07.06.2013 23:02:12 [<-] 1399999986000000000/10047614473*2^(1/2)
As you can see: solve({(0=, but you expected solve({(x=. That's the difference. The solve() function solves another equation.
07.06.2013 23:02:12 [->] solve({(0=(77/10000*ln({((77/10000+772893421/100000000000000*t*715*cos({(Pi/4)}))/77/10000)}))/772893421/100000000000000)},t)
07.06.2013 23:02:12 [->] C:\Temp\tmp1B5E.tmp:
interface(quiet=true);
with(linalg):with(inttrans):with(plots):
writeto("C:\\Temp\\tmp1B5F.tmp"):
smath_line := proc() local i: for i from 1 to nargs - 2 do args[i]; od: end:
smath_sum := proc() if nargs = 1 then sum( args[1] ); elif nargs = 2 then sum( args[1], args[2] ); elif nargs = 4 then sum( args[1], args[2] = args[3] .. args[4] ); fi: end:
smath_product:= proc() if nargs = 1 then product( args[1] ); elif nargs = 2 then product( args[1], args[2] ); elif nargs = 4 then product( args[1], args[2] = args[3] .. args[4] ); fi: end:
smath_int := proc() if nargs = 2 then int( args[1], args[2] ); elif nargs = 4 then int( args[1], args[2] = args[3] .. args[4] ); fi: end:
smath_diff := proc() if nargs = 2 then diff( args[1], args[2] ); elif nargs = 3 then diff( args[1], args[2] $ args[3] ); fi: end:
smath_sys := proc() { args[i] $ i = 1 .. nargs - 2 }; end:
smath_el := proc() args[1][ args[2] ]; end:
smath_mat := proc()
local i, j, out:
out := [ args[j] $ j = 1 .. args[ nargs ] ]:
for i from 2 to args[ nargs - 1 ] do
out := out, [ args[j] $ j = ( i - 1 ) * args[ nargs ] + 1 .. ( i - 1 ) * args[ nargs ] + args[ nargs ] ]:
od:
convert( [ out ], array );
end:
smath_submatrix := proc() submatrix( args[1], args[2] .. args[3], args[4] .. args[5] ); end:
ans := \
solve(((0=(77/10000*ln((((77/10000+772893421/100000000000000*t*715*cos\
(((Pi/4))))/77/10000))))/772893421/100000000000000)),t):
if ( whattype( ans ) = `exprseq` ) then
convert( convert( cat( `mat(`, substring( convert( [ans], string ), 2..-2 ), `,`, nops( [ans] ), `,1)` ), string ), symbol );
elif ( whattype( ans ) = `set` ) then
convert( convert( cat(`mat(`,substring(convert(map2(op,2,[ans[i]$i=1..nops(ans)]),string),2..-2),`,`,nops(ans),`,1)`), string ), symbol );
elif ( whattype( ans ) = `symbol` ) then
convert( convert( eval( ans ), string ), symbol );
elif ( whattype( ans ) = `series` ) then
convert( convert( ans, polynom) , symbol );
elif ( whattype( ans ) = `string` ) then
convert( ans, symbol );
else
convert( convert( ans, string ), symbol ); fi;
quit:
07.06.2013 23:02:12 [<-] C:\Temp\tmp1B5F.tmp:
1399999986000000000/10047614473*2^(1/2)
07.06.2013 23:02:12 [<-] 1399999986000000000/10047614473*2^(1/2)
As you can see: solve({(0=, but you expected solve({(x=. That's the difference. The solve() function solves another equation.
Russia ☭ forever, Viacheslav N. Mezentsev
-
Новые сообщения
-
Нет новых сообщений