Maple Tools - Symbolic engine for SMath Studio. - Messages
#181 Posted: 6/7/2013 1:39:34 PM
WroteWhen 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.
Hello,
As far as well I understand, you want to say that this is not the Maple error but SMath Studio. Am I right? Please forgive my enquiries.
Regards,
Janusz
#182 Posted: 6/7/2013 5:21:05 PM
For now it's not so clear for me where is a problem. I doubt that there is an error. I'm thinking...
Russia ☭ forever, Viacheslav N. Mezentsev
#183 Posted: 6/8/2013 5:50:56 AM
Uni,
Thank you for the answer. I do not doubt that you will find proper solution.
Best regards,
Janusz
Thank you for the answer. I do not doubt that you will find proper solution.
Best regards,
Janusz
1 users liked this post
Вячеслав Мезенцев 6/8/2013 5:52:00 AM
#184 Posted: 6/8/2013 6:28:55 AM
Hmm..., a peculiar thing hapened to me. Not sure what is it about. Things sometimes change in using maple() by recalculation worksheet.
Here is a simple example I've mentioned before
[albumimg]204[/albumimg][albumimg]205[/albumimg]
I do nothing but recalculate the worksheet subsequently. After few (do not know ho many) the results changed and get back. Sometimes "Empty stack..." happened (did not caught it here)
As I am not a Maple user, I might do something wrong of course - but looks strange to me.
Could someone try to reproduce this? Just open the file and press F9 until/if the results changed.
Regards,
Radovan
mvr5.txt (666 KiB) downloaded 43 time(s).
Here is a simple example I've mentioned before
[albumimg]204[/albumimg][albumimg]205[/albumimg]
I do nothing but recalculate the worksheet subsequently. After few (do not know ho many) the results changed and get back. Sometimes "Empty stack..." happened (did not caught it here)
As I am not a Maple user, I might do something wrong of course - but looks strange to me.
Could someone try to reproduce this? Just open the file and press F9 until/if the results changed.
Regards,
Radovan
mvr5.txt (666 KiB) downloaded 43 time(s).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#185 Posted: 6/8/2013 6:49:29 AM
#186 Posted: 6/8/2013 7:13:02 AM
You are right. The same is happening when you delete the first system and leave the second one. After after many subsequent F9, you will get the solutions for z(t), u(t) reversed and back.
Regards,
Radovan
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#187 Posted: 6/12/2013 11:22:00 AM
Hello,
Again I receive the same type of error. But this time the change the argument's separator from ";" on "," - in the application settings, does not liquidate the appearance of the error. Anybody know what's the reason of this error?
Regards,
Janusz
[albumimg]215[/albumimg]
Again I receive the same type of error. But this time the change the argument's separator from ";" on "," - in the application settings, does not liquidate the appearance of the error. Anybody know what's the reason of this error?
Regards,
Janusz
[albumimg]215[/albumimg]
#188 Posted: 6/12/2013 2:24:00 PM
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#189 Posted: 6/13/2013 9:26:07 AM
Radovan,
Once again thank you for your perfect help. Unfortunately I do not have the experience with the Maple application, by now I used Derive. However SMath Studio with the MapleWrapper plugin is a splendid programme. I think I must better recognize the Maple language.
The best regards,
Janusz
P.S.
It's a matter of the parenthesis:
[albumimg]219[/albumimg]
Once again thank you for your perfect help. Unfortunately I do not have the experience with the Maple application, by now I used Derive. However SMath Studio with the MapleWrapper plugin is a splendid programme. I think I must better recognize the Maple language.
The best regards,
Janusz
P.S.
It's a matter of the parenthesis:
[albumimg]219[/albumimg]
1 users liked this post
Radovan Omorjan 6/13/2013 10:40:00 AM
#190 Posted: 6/13/2013 10:44:47 AM
You are welcome,
By the way, I did not use Maple at all
, just occasionally used Maxima.
Regards,
Radovan
By the way, I did not use Maple at all

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#191 Posted: 7/1/2013 1:31:58 PM
Hello,
I try calculate the LambertW function as in the after-mentioned example. During calculations I receive the answer: "function is not defined". I found the name of LambertW function in the cmds file of MapleWrapper plug-in, but I'm not sure that the function is implemented in that plug-in. From the prompt of the plug-in or SMath Studio - I'm not sure, results that the function is not implemented in MapleWrapper. Please for the confirmation is that function implemented or not. Maybe I do something improperly?
[albumimg]223[/albumimg]
Regards,
Janusz
I try calculate the LambertW function as in the after-mentioned example. During calculations I receive the answer: "function is not defined". I found the name of LambertW function in the cmds file of MapleWrapper plug-in, but I'm not sure that the function is implemented in that plug-in. From the prompt of the plug-in or SMath Studio - I'm not sure, results that the function is not implemented in MapleWrapper. Please for the confirmation is that function implemented or not. Maybe I do something improperly?
[albumimg]223[/albumimg]
Regards,
Janusz
#192 Posted: 7/1/2013 8:54:07 PM
The problem in the fractional representation of the numbers.
[albumimg]224[/albumimg]
[albumimg]224[/albumimg]
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Radovan Omorjan 7/2/2013 1:17:00 AM
#193 Posted: 7/2/2013 1:26:07 AM
I used the recent unofficial build by Martin Kraska. As we know, there is no Maple plugin there. I installed it of course. It did not work initially. Whatever I tried it returned "empty". Just by chance I moved the entire directory where the SMath portable resides one folder up, then everything was Ok. It seems that maple will not work for me if the directory containing the portable version is to low in hierarchy. Not quite sure about it and what was the reason. Maybe to many spaces in the directory names, maybe to long directory absolute name - do not know.
Regards,
Radovan
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#194 Posted: 7/2/2013 9:27:49 AM
WroteThe problem in the fractional representation of the numbers.
Uni,
Thank you for the bright and complete answer.

The best regards,
Janusz
#195 Posted: 8/1/2013 7:01:35 AM
I am not able to reproduce the maple plot examples in 4909 any more. maple() runs as usual, just the maple plot region seems to have problems to produce the image files. The temporary files mentioned in the log file are created but empty.
mvr5 (2).txt (2 KiB) downloaded 49 time(s).
mvr5 (2).txt (2 KiB) downloaded 49 time(s).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Вячеслав Мезенцев 8/8/2013 1:44:00 PM
#196 Posted: 8/1/2013 7:12:51 AM
SMath crashes when I try to access the context menu of a maple region. The contents of the error message is attached. Using SMath 4909.
error maplescript.txt (15 KiB) downloaded 47 time(s).
error maplescript.txt (15 KiB) downloaded 47 time(s).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Вячеслав Мезенцев 8/8/2013 1:45:00 PM
#197 Posted: 8/8/2013 1:47:37 PM
WroteI am not able to reproduce the maple plot examples in 4909 any more. maple() runs as usual, just the maple plot region seems to have problems to produce the image files. The temporary files mentioned in the log file are created but empty.
Fixed.
QuoteSMath crashes when I try to access the context menu of a maple region. The contents of the error message is attached. Using SMath 4909.
Do not use this region for now.
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Martin Kraska 8/9/2013 7:48:00 PM
#198 Posted: 8/9/2013 7:48:00 PM
Thanks a lot, plot works now (still cannot save the script).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#199 Posted: 9/19/2013 6:02:29 AM
There is a problem in SMath with the return format of dsolve solutions from Maple.
After writing the command, you can evaluate just once. Upon recalculation (button in toolbar) control gets lost.
You could either translate the = to boolean equal (this is how we plan to handle that in Maxima)
or translate it into : and thereby immediately defining the solution function. This, however, would provide problems upon recalculation of the sheet. You also might just cut off the left hand side, but that perhaps won't work for systems of equations.
dsolve.sm (2 KiB) downloaded 62 time(s).
After writing the command, you can evaluate just once. Upon recalculation (button in toolbar) control gets lost.
You could either translate the = to boolean equal (this is how we plan to handle that in Maxima)
or translate it into : and thereby immediately defining the solution function. This, however, would provide problems upon recalculation of the sheet. You also might just cut off the left hand side, but that perhaps won't work for systems of equations.
dsolve.sm (2 KiB) downloaded 62 time(s).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#200 Posted: 9/19/2013 8:45:59 AM
Just see few posts above please, for instance starting from this one . As I understood uni, there is op() function in Maple for extracting expressions
[MATH=eng]f(x):maple(op(2,dsolve(diff(f(x),x)+5*x*f(x)≡x^2,f(x))))[/MATH]
[MATH=eng]f(x)={sqrt(10)*(x*sqrt(10)+i*sqrt(π)*exp(-{5*x^2}/2)*Erf({i*x*sqrt(10)}/2))+50*exp(-{5*x^2}/2)*_C1}/50[/MATH]
Regards,
Radovan
[MATH=eng]f(x):maple(op(2,dsolve(diff(f(x),x)+5*x*f(x)≡x^2,f(x))))[/MATH]
[MATH=eng]f(x)={sqrt(10)*(x*sqrt(10)+i*sqrt(π)*exp(-{5*x^2}/2)*Erf({i*x*sqrt(10)}/2))+50*exp(-{5*x^2}/2)*_C1}/50[/MATH]
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
2 users liked this post
-
New Posts
-
No New Posts