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

Notification

Icon
Error

Login


16 Pages«<45678>»
Options
Go to last post Go to first unread
Offline Alex M.  
#101 Posted : 11 April 2014 17:28:37(UTC)
Alex M.


Rank: Advanced Member

Groups: Registered
Joined: 03/03/2014(UTC)
Posts: 418
Canada

Was thanked: 125 time(s) in 96 post(s)
Hi mkraska,

First of all, thank you for a great plugin. Smath and Maxima seem to be a good replacement for Mathcad and Mathematica.

Now question for you: is it possible to copy paste within maxima() function? Does not seem to work on my PC (windows 7 64 bit)

Many thanks!
Offline mkraska  
#102 Posted : 11 April 2014 22:26:19(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,985
Germany

Was thanked: 1124 time(s) in 721 post(s)
Thanks for the feedback.

I don't know if I understand you right. There is no special treatment of the Maxima() function in the math region editor. Everything which works for any function arguments should work for the argument of Maxima(). Is your problem really specific to Maxima() or does it show up for - let's say - sin()?
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Alex M.  
#103 Posted : 16 April 2014 23:00:26(UTC)
Alex M.


Rank: Advanced Member

Groups: Registered
Joined: 03/03/2014(UTC)
Posts: 418
Canada

Was thanked: 125 time(s) in 96 post(s)
Sorry, this is deficiency of Smath Studio overall - seems like you cannot paste any text into a formula.
Offline Alex M.  
#104 Posted : 19 April 2014 01:37:52(UTC)
Alex M.


Rank: Advanced Member

Groups: Registered
Joined: 03/03/2014(UTC)
Posts: 418
Canada

Was thanked: 125 time(s) in 96 post(s)
Hi mkraska,

I am getting to use maxima plugin a little bit more and ran in a problem very similar to
http://en.smath.info/for...-a-number.aspx#post12822

When I pass to Maxima an expression (using Maxima()) with undefined variables to solve it symbolically it does not seem to work. I have created Maxima workbook to confirm that what I am trying to do is achievable using maxima.

Any ideas?

Screenshot and Smath workbook are attached.

Thanks!

wxMaxima code:

***

V:b0*t*alpha*fy;
M:b0*t*alpha*fy*y;
Vall:b(y)*t*alpha*fy;
MpSad(b(y))^2*t*fy)/4;
solveMV:solve(V/Vall+M/Mp-1,b(y));
MV:subst([b0=15,alpha=0.577,t=16,fy=385,y=y],solveMV[2]);
solveM:solve(M/Mp-1,b(y));
M:subst([b0=15,alpha=0.577,t=16,fy=385,y=y],solveM[2]);

***

Edited by user 19 April 2014 01:40:48(UTC)  | Reason: Not specified

File Attachment(s):
ShearLinkGeometry.sm (92kb) downloaded 48 time(s).
Alex M. attached the following image(s):
mxma.png
Offline mkraska  
#105 Posted : 19 April 2014 02:00:08(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,985
Germany

Was thanked: 1124 time(s) in 721 post(s)
solve() is the SMath built-in numeric solver.

You want Solve().

EDIT: BTW, you can use text incdices and greek letters with Maxima.

Edited by user 19 April 2014 02:10:23(UTC)  | Reason: Not specified

mkraska attached the following image(s):
solve.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Alex M.  
#106 Posted : 19 April 2014 04:39:35(UTC)
Alex M.


Rank: Advanced Member

Groups: Registered
Joined: 03/03/2014(UTC)
Posts: 418
Canada

Was thanked: 125 time(s) in 96 post(s)
mkraska,

That explains why solve() function did not work, however it does not explain why Maxima(solve())= function did not work - it should have passed solve() to maxima in which solve() is correct syntax.

Thank you for your help!!!
Offline Alex M.  
#107 Posted : 19 April 2014 08:16:12(UTC)
Alex M.


Rank: Advanced Member

Groups: Registered
Joined: 03/03/2014(UTC)
Posts: 418
Canada

Was thanked: 125 time(s) in 96 post(s)
Also I am not sure where to post it but I found a very decent guide to maxima - it is a good source for most "how to" a typical user might need

http://www-com.physik.hu.../kurs/maxima/maxima.html

thanks 1 user thanked Alex M. for this useful post.
on 19/04/2014(UTC)
Offline mkraska  
#108 Posted : 19 April 2014 10:46:47(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,985
Germany

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: oxel007 Go to Quoted Post
That explains why solve() function did not work, however it does not explain why Maxima(solve())= function did not work - it should have passed solve() to maxima in which solve() is correct syntax.

Maxima() just like any other function in the Maxima plugin translates the arguments only after SMath preprocessing, i.e. substituting all known symbolic expressions and executing all known functions. If a function is not smart enough to return itself if this evaluation fails, then the preprocessing throws an error. In the given case, solve() should return itself if evaluated symbolically.

Switching off preprocessing (you can do that in the maxima debugging window) is not an option, unless you want the arguments of solve() being transferred to Maxima verbatim.

Edited by user 19 April 2014 11:49:59(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline mkraska  
#109 Posted : 21 April 2014 22:51:45(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,985
Germany

Was thanked: 1124 time(s) in 721 post(s)
Here you find a preliminary version of portable SMath with Maxima.

Installation: just unpack the zip to the root (or whereever you want) of an USB Stick. Download is approx. 60 MB, unkompressed 150 MB.

Usage:

When you put the USB stick to a new host, start SMath\Maxima\X-Maxima.exe and close the wxMaxima Window. This sets the path (drive letter) correctly. Repeat this step, if you move to a different computer, where the stick has a different drive letter.

The Maxima plugin is already configured and ready for use.

There is a known problem: Sometimes you have to add MaximaControl("restart" ) in order for Draw2D/3D to work. Please report any problems.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 21/04/2014(UTC),  on 22/04/2014(UTC)
Offline omorr  
#110 Posted : 22 April 2014 00:39:03(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Martin,

Thank you for this portable version.

Unfortunately, it is not working for me as expected. Maxima can not be restarted if we use same saved file. The Starting Maxima window for the second time is not responding and MaximaControl(restart) gives "Maxima was closed"

When I copy all the regions into an empty worksheet, then Maxima could be restarted more than once, but the plots are not presented and the error was "The path is not of a legal form".

There might be a problem in the "maxima.bat" again. Look at it please. For instance, there is "set path" from your computer but the other paths are from mine.

I even tried to delete maxima.bat and to restart X-Maxima. The result is "maxima2.bat" but id did not help at all.

Find both *.bat files in the maxima.zip please.

Regards,
Radovan

Edited by user 22 April 2014 00:43:46(UTC)  | Reason: Not specified

File Attachment(s):
maxima.zip (3kb) downloaded 45 time(s).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline mkraska  
#111 Posted : 22 April 2014 01:55:46(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,985
Germany

Was thanked: 1124 time(s) in 721 post(s)
Radovan, thanks for testing.

In the original maxima.bat, the lines 25 to 27 look like this:

Code:
set path=%maxima_prefix%\gnuplot;%maxima_prefix%\bin;%maxima_prefix%\lib\gcc-lib\mingw32\3.3.1;%path%

if "%USERPROFILE%" == "" goto win9x


obviously, X-Maxima.exe replaces the references to environment variables %path% and %USERPROFILE% by their values in maxima.bat. In subsequent runs of X-Maxima these are not corrected. For line 27 this can be handled by just commenting it out, for line 25 I do not have
a solution.

What I try now is to just use the ordinary Maxima-Installer and hardwire all file references in maxima.bat with flexible drive letter references. This requires the zip file to be installed in the root of the usb drive, which should not be a prohibitive requirement. Then, no X-Maxima should be required any more...
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline mkraska  
#112 Posted : 22 April 2014 10:53:40(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,985
Germany

Was thanked: 1124 time(s) in 721 post(s)
Here is a new preliminary portable SMath+Maxima version.

Improvements:
- Changed to Maxima 5.33.0 (works with draw)
- restart of Maxima should be possible
- X-Maxima not involved any more
Remaining problems:
- Absolute path to maxima must be used in Maxima settings (has to be changed if USB drive letter changes)

Install:
Unpack the zip file in the root dir of your USB drive

Usage:
- start SMath at SMath\2014...
- make sure the path to maxima is set correctly: Insert> Maxima> Settings: Specify absolute path to maxima (Drive:\SMath\Maxima-5.33.0.1 should do)

We try to go with relative path name in order to avoid the mentioned adjustments. Please report any issues.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline omorr  
#113 Posted : 22 April 2014 13:18:27(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Unfortunately, this is not working for me as well

I changed the path with Insert>Maxima>Settings.

- <MaximaPlugin>
- <Settings>
<PathToMaxima.bat>C:\Users\omorr\Downloads\Software\SMath\SMath\Maxima-5.33.0.1\bin\maxima.bat</PathToMaxima.bat>

Path is correct, I checked twice.

But now, restarting Insert>Maxima>Settings or MaximaControl(restart) will simply freeze the Start Maxima window and not starting Maxima. Will try some more to some other computers.

Regards,
Radovan

[EDIT] I put it now on the USB stick

- <MaximaPlugin>
- <Settings>
<PathToMaxima.bat>F:\SMath\Maxima-5.33.0.1\bin\maxima.bat</PathToMaxima.bat>

Strange, but now it works Good . But I am not sure if this would work on another computer (No Smath, No Maxima) and if this would be portable. I could see that Temp folder on the stick was used for temporary plot files. Here is my maxima.bat file. I hope that it should be this way.

[EEDIT]

I tried right now the stick to another computer (No SMath, No Maxima) and it works Good

Edited by user 22 April 2014 14:11:22(UTC)  | Reason: Not specified

File Attachment(s):
maxima.zip (2kb) downloaded 40 time(s).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 22/04/2014(UTC)
Offline mkraska  
#114 Posted : 22 April 2014 14:17:34(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,985
Germany

Was thanked: 1124 time(s) in 721 post(s)
Due to the internal logic of maxima.bat it is essential that the portable version is installed in the root directory of the drive. Thus having it somewhere on the harddisk won't work unless it resides directly in C:\

This is consistent with what you reported. Nice to hear that it works if properly installed. When trying on other computers, you may need to change the drive letter in the maxima settings.

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline omorr  
#115 Posted : 22 April 2014 14:27:26(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Originally Posted by: mkraska Go to Quoted Post
Due to the internal logic of maxima.bat it is essential that the portable version is installed in the root directory of the drive. Thus having it somewhere on the harddisk won't work unless it resides directly in C:\

This is consistent with what you reported. Nice to hear that it works if properly installed. When trying on other computers, you may need to change the drive letter in the maxima settings.



Than you Martin. I must have been forgotten this, sorry.

By the way, as uni updated Image region plugin Image Region - png problem it seems that png plots will update now. Moreover, it removed SMath crashes on my office computer when using your Draw2D3D and other Maxima files Good
Thank you uni Good
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline mkraska  
#116 Posted : 03 May 2014 19:00:28(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,985
Germany

Was thanked: 1124 time(s) in 721 post(s)
Here is another portable SMath with Maxima.

- unzip the file wherever you want (space requirement 140 MB
- launch the executable in SMath\2014 04 17 SMath 0.97.5189 Portable

You also can run wxMaxima in SMath\Maxima-5.33.0.1\wxMaxima

As a test you might run the attached file. The package contains an experimental version of the Maxima plugin, some of the features (in particular the file format of plot regions) may change.

There are stability issues with the draw functions. They can crash Maxima and sometimes SMath if their input is not defined.
File Attachment(s):
Fit.sm (22kb) downloaded 57 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 03/05/2014(UTC)
Offline patel75  
#117 Posted : 06 May 2014 19:26:55(UTC)
patel75

Rank: Newbie

Groups: Registered
Joined: 28/09/2009(UTC)
Posts: 3
Location: UK

Hi,

I've just restarted SMath after a break of a couple of years and am finding the Maxima plugin is the best thing in SMath since I last used it.

I do however have a minor problem. When doing a taylor expansion, the expression displayed by SMath is being factorised. This is quite annoying for me and I would like to know if there is a way to display the expansion is the standard format as displayed by Maxima. See below.

SMATH output
SmathMaximaTaylor.PNG


Maxima Output
MaximaTaylor.PNG
patel75 attached the following image(s):
SmathMaximaTaylor.PNG
MaximaTaylor.PNG
Offline omorr  
#118 Posted : 06 May 2014 19:49:08(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello,

SMath Optimization should be suppressed when using Maxima plugin. Right click on the Maxima region and choose Optiization|None

Maxima(taylor(g(x),x,0,10))=1-{x^2}/2+{x^4}/24-{x^6}/720+{x^8}/40320-{x^10}/3628800

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 07/05/2014(UTC)
Offline mkraska  
#119 Posted : 10 May 2014 14:42:25(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,985
Germany

Was thanked: 1124 time(s) in 721 post(s)
I've uploaded a snippet with descriptions for Maxima Draw2D and Draw3D graphic options and objects. Thus they are known to the dynamic assistant for hints on syntax and for auto-completion.

Shortcut is "Draw"

todo:
- integration of the texts in the Maxima plugin (possibly with config file for adding new texts without re-compilation)
- translation to other language (now mostly german)
- extension to other Maxima functions.
mkraska attached the following image(s):
draw.PNG
draw-snippet.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline omorr  
#120 Posted : 28 May 2014 10:54:41(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Martin,

I can not figured out what is going on here by looking at the log file. Please look at the picture and the attached file. If I use numbers inside distrib package functions I have the result, but if I use variables - problems arise. Am I missing something here?

Regards,
Radovan

Edited by user 28 May 2014 11:15:33(UTC)  | Reason: Not specified

File Attachment(s):
distrib-Maxima-revised.sm (13kb) downloaded 44 time(s).
omorr attached the following image(s):
maximadistrib.png
maximaver.png
maimaport.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Users browsing this topic
Guest
Similar Topics
Error implementing ToolboxGroup for the maxima plugin (Questions)
by fakemoses 31/07/2023 20:09:47(UTC)
Maxima Plugin Feedback Survey: Share Your Ideas and Report Bugs (Feature Requests)
by fakemoses 16/06/2023 13:27:33(UTC)
MAXIMA PLUGIN expand (Questions)
by Angel695 21/05/2023 10:43:40(UTC)
Solve Function Stuck (46/47) with Maxima Plugin (Questions)
by Albedo 30/08/2022 05:24:23(UTC)
[Maxima Plugin] Text exportation issue (Questions)
by SteelCat 11/01/2022 12:47:31(UTC)
Maxima Plugin problem (Bugs & Problems)
by FT_PENG 23/12/2021 23:49:19(UTC)
Text characters not passing correctly to Maxima plugin (Bugs & Problems)
by gurro 15/08/2021 00:14:03(UTC)
[Maxima Plugin] is a custom Maxima function call-able in SMath (Questions)
by 007.000 22/05/2018 13:06:49(UTC)
[Maxima Plugin] least common multiple (Questions)
by 007.000 22/05/2018 12:13:20(UTC)
news for Maxima Plugin (Questions)
by oscampo 27/01/2016 18:39:35(UTC)
Maxima plugin error (Bugs & Problems)
by olik 30/11/2015 10:17:28(UTC)
16 Pages«<45678>»
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.