Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline charlamb  
#1 Posted : 02 June 2022 18:43:03(UTC)
charlamb


Rank: Member

Groups: Registered
Joined: 02/06/2022(UTC)
Posts: 14
Brazil

Was thanked: 1 time(s) in 1 post(s)
Hi,

I just started to use SMath and I have just 2 beginning questions:
- would it be possible to use an already installed version of Maple (I have a newer version installed in my university's laboratory), through a script or something else, like the Maxima plugin?
- I've seen in some of the forum messages the use of the indefinite integral symbol but I haven't figured out how to place it in my worksheets. Could someone tell me how to do it?

Thanks very much in advance.

Best regards,

Charlie

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 02 June 2022 23:28:03(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: charlamb Go to Quoted Post
I've seen in some of the forum messages the use of the indefinite integral symbol but I haven't figured out how to place it in my worksheets. Could someone tell me how to do it?

That will do SS 6179 ... latest SS ? ... try at no cost.

Integral 0maple suite [Multiple] Copy.sm (9kb) downloaded 14 time(s).

Offline charlamb  
#3 Posted : 02 June 2022 23:55:31(UTC)
charlamb


Rank: Member

Groups: Registered
Joined: 02/06/2022(UTC)
Posts: 14
Brazil

Was thanked: 1 time(s) in 1 post(s)
Hi, Jean.

thanks very much! I really appreciate.

btw, I do have the latest SS! But would like to know if it is possible to use the latest Maple with SS.

Best regards,

C

Edited by user 03 June 2022 00:20:05(UTC)  | Reason: Not specified

Offline overlord  
#4 Posted : 03 June 2022 01:32:03(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,126
Turkey

Was thanked: 507 time(s) in 338 post(s)
Originally Posted by: charlamb Go to Quoted Post
- would it be possible to use an already installed version of Maple (I have a newer version installed in my university's laboratory), through a script or something else, like the Maxima plugin?

Not possible at the moment unless a new plugin won't written from scratch.
Current maple plugin for smath uses maple_v6, via command line.
Maybe a scripting plugin can be written for latest maple, maybe not.
I don't know if latest Maple version is available for that purpose.
Apart from availability, I think there will be licensing issues.

Originally Posted by: charlamb Go to Quoted Post
- I've seen in some of the forum messages the use of the indefinite integral symbol but I haven't figured out how to place it in my worksheets. Could someone tell me how to do it?

This is how I write it:
I write int(, it will automatically complete as int(#).
Then I write a single argument separator while in parenthesis.
Separator is usually either comma or semicolon according to your selection.

Regards

output.gif
Offline Razonar  
#5 Posted : 03 June 2022 08:36:56(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi Charlie. Maple have an Excel directory under it's own directory, with an xla file, WMIMPLEX.xla, which could be load as an microsoft excel extension with macros, and used for call your maple version from excel. Further, you can import into SMath the excel values with one of the couple of SMath' excel plugins.

Hope that helps.

Best regards.
Alvaro.
Offline charlamb  
#6 Posted : 03 June 2022 14:33:18(UTC)
charlamb


Rank: Member

Groups: Registered
Joined: 02/06/2022(UTC)
Posts: 14
Brazil

Was thanked: 1 time(s) in 1 post(s)
Thanks, Overlord and Alvaro.

I will try the Excel procedure.

Regarding the Maple plugin, I was thinking more in the line of a script/wrapper, like the Maxima plugin; I don't think it would be even reasonable to ask for a new version of the plugin every time a new version of Maple comes out. I just thought that a script/wrapper would be easier to write, since it could be made such that it doesn't rely on the actual version of the software being called (of course that would exclude any new "features" the software introduces at every new version). But anyway,...

Again, thanks very much for all the suggestions and instructions.

Best regards,

C
Offline Jean Giraud  
#7 Posted : 04 June 2022 16:02:28(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Charlie,
As well you can get Maple definite integrals, damned productive !
Enjoy this visit SS 6179.
Cheers ... Jean.

Maple Solve ODE, Verhulst, Eiffel, Lambert.sm (188kb) downloaded 13 time(s).
Offline charlamb  
#8 Posted : 06 June 2022 14:18:19(UTC)
charlamb


Rank: Member

Groups: Registered
Joined: 02/06/2022(UTC)
Posts: 14
Brazil

Was thanked: 1 time(s) in 1 post(s)
Thanks, Jean.

Best regards,

C
Offline uni  
#9 Posted : 06 June 2022 14:26:45(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
The problem is in the intermediate code, which may differ in different versions of Maple. I tried version 7 and it tries to work but the helper code needs to be rewritten. You can connect any version of Maple that has a command interface (cmaple.exe).

In the plugin tmp folder (%appdata%\extensions\plugins\32dfd679-8cfd-483a-b79a-19d5ea838750\x.x.x.x\bin\tmp\), you can see the intermediate code being used (in.tmp):

Code:
interface(quiet=true);
with(linalg):with(inttrans):with(plots):
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_nthroot := proc() root( 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:
smath_int(sin(x),x);
ans := %:
writeto(".\\tmp\\out.tmp"):
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:
Russia ☭ forever
Viacheslav N. Mezentsev
Offline charlamb  
#10 Posted : 06 June 2022 18:25:20(UTC)
charlamb


Rank: Member

Groups: Registered
Joined: 02/06/2022(UTC)
Posts: 14
Brazil

Was thanked: 1 time(s) in 1 post(s)
Hi, Uni.

I really appreciate you take the time to look into it. I haven't code for a very long time, so I wouldn't know how to proceed!

I tried just a plainly replacement of the cmaple.exe file with the current version we have here in the lab but it didn't work. It just gives me the result of the last operation I had with the original cmaple.exe of the plugin.

Best regards,

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.