Maxima Plugin

Maxima Plugin - Poruke

#281 Objavljeno: 24. 3. 2020. 11:10:39
netsonicyxf

netsonicyxf

2 svidjanja u 79 postova.

Grupa: User

Wrote

Wrote

I have a portable version of Smath 0.99.7251. The Maxima is under D:\Program Files\Math Tools\SMath Studio\extensions\plugins\44011c1e-5d0d-4533-8e68-e32b5badce41\1.98.7100.23756\
I put the above path into insert->settings, but it show "Cannot find maxima.bat"



Did you install Maxima? If not, follow the link in my signature and see the instructions for installing and configuring Maxima. The plugin just provides the interface.



Thanks. I installed Maxima 5.42.2.
But still can't get result. SM file attached.
maxima.png
maxima.sm (2,97 KiB) preuzeto 1739 put(ova).
#282 Objavljeno: 24. 3. 2020. 13:01:31
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Why so much trouble for ordinary stuff vs Smath Native ?

Native.PNG
#283 Objavljeno: 24. 3. 2020. 22:22:03
netsonicyxf

netsonicyxf

2 svidjanja u 79 postova.

Grupa: User

Wrote

Why so much trouble for ordinary stuff vs Smath Native ?

Native.PNG



Thanks Jean, but can't get result either.

error:"x not defined"

maple.sm (2,01 KiB) preuzeto 1746 put(ova).
#284 Objavljeno: 25. 3. 2020. 00:32:16
CBG

CBG

78 svidjanja u 312 postova.

Grupa: User

put the optimization to symbolic or none

Maple_simbolic.png

Best Regards

Carlos
#285 Objavljeno: 25. 3. 2020. 06:04:40
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Wrote

Wrote

Wrote

I have a portable version of Smath 0.99.7251. The Maxima is under D:\Program Files\Math Tools\SMath Studio\extensions\plugins\44011c1e-5d0d-4533-8e68-e32b5badce41\1.98.7100.23756\
I put the above path into insert->settings, but it show "Cannot find maxima.bat"



Did you install Maxima? If not, follow the link in my signature and see the instructions for installing and configuring Maxima. The plugin just provides the interface.



Thanks. I installed Maxima 5.42.2.
But still can't get result. SM file attached.



You have to set Optimization to Symbolic or None to display symbolic results. You can also press Ctrl+. instead of = to get symbolic results from an expression.

@Jean: maple isn't SMath native, you see that if you try it in the cloud version. Also, the legal/license status of the embedded maple executable has never been clarified. There might be people who care about this.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#286 Objavljeno: 25. 3. 2020. 09:46:52
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

@Jean: maple isn't SMath native, you see that if you try it in the cloud version. Also, the legal/license status of the embedded maple executable has never been clarified. There might be people who care about this.


YES Martin. On the other hand, Maple is the former Macsyma
joint venture MIT/UT [University of Toronto].
Hard to legal/license to freeware Smath.
The very core Maple is largely due to Angot ancestor.
Thanks Martin ... Cheers/Jean

#287 Objavljeno: 8. 10. 2020. 07:00:15
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

This is an example on how to control the assumptions used for symbolic integration in Maxima.

1-2-4 Widerstandskrafte.png
1-2-4 Widerstandskrafte.sm (12,13 KiB) preuzeto 1736 put(ova).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
2 korisnika je svidelo ovu objavu
sergio 8. 10. 2020. 15:45:00, IVR 10. 10. 2020. 12:24:00
#288 Objavljeno: 10. 10. 2020. 20:52:49
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Get more from less ... typical.

Int More.PNG
#289 Objavljeno: 23. 11. 2020. 16:28:27
Fridel Selitsky

Fridel Selitsky

520 svidjanja u 451 postova.

Grupa: User

Animation in Maxima
Плагин Maxima не имеет встроенной возможности анимации.
Для создания анимации использовалась программа
https://en.smath.com/forum/yaf_postsm48012_Graph-animation.aspx#post48012
Для записи Gif файла использовалась программа GifCam.


povorot1.sm (74,29 KiB) preuzeto 1703 put(ova).
SpiralMaxima.sm (45,77 KiB) preuzeto 1719 put(ova).


3 korisnika je svidelo ovu objavu
Andrey Ivashov 23. 11. 2020. 17:36:00, Martin Kraska 23. 11. 2020. 18:06:00, IVR 25. 11. 2020. 07:19:00
#290 Objavljeno: 23. 11. 2020. 16:35:47
Fridel Selitsky

Fridel Selitsky

520 svidjanja u 451 postova.

Grupa: User

Visualization of animation steps

Slider.sm (159,76 KiB) preuzeto 1769 put(ova).
2 korisnika je svidelo ovu objavu
Andrey Ivashov 23. 11. 2020. 17:36:00, Martin Kraska 23. 11. 2020. 18:06:00
#291 Objavljeno: 23. 11. 2020. 18:15:12
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Wrote

Animation in Maxima
Плагин Maxima не имеет встроенной возможности анимации.
Для создания анимации использовалась программа
https://en.smath.com/forum/yaf_postsm48012_Graph-animation.aspx#post48012
Для записи Gif файла использовалась программа GifCam.


Very nice. Here is a version with absolute variables (names starting with ~, not easy to input with german keyboard) for execution counter. BTW, the original version reads temp storage before it is written. This throws an error similar to what would happen if I had not checked for a being undefined.

povorot1_kr.sm (75,16 KiB) preuzeto 1747 put(ova).
povorot1_kr.png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 korisnika je svidelo ovu objavu
Fridel Selitsky 23. 11. 2020. 19:10:00
#292 Objavljeno: 23. 11. 2020. 18:35:41
Fridel Selitsky

Fridel Selitsky

520 svidjanja u 451 postova.

Grupa: User

Vibrations of a rectangular membrane





Vibration Restangular Membrane.sm (184,22 KiB) preuzeto 1718 put(ova).
1 korisnika je svidelo ovu objavu
Andrey Ivashov 23. 11. 2020. 19:03:00
#293 Objavljeno: 23. 11. 2020. 19:10:35
Fridel Selitsky

Fridel Selitsky

520 svidjanja u 451 postova.

Grupa: User

Thanks a lot, Martin. Wonderful! I was not aware of the IsDefined function.
#294 Objavljeno: 24. 11. 2020. 11:09:18
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Thanks Champions: Martin, Ber7
#295 Objavljeno: 24. 11. 2020. 17:37:40
Fridel Selitsky

Fridel Selitsky

520 svidjanja u 451 postova.

Grupa: User

Vibrations of a circular membrane.The general case

https://en.smath.com/forum/yaf_postst11431_Vibrations-of-membranes.aspx



CircleAntisiimmetr.sm (252,68 KiB) preuzeto 1721 put(ova).
#296 Objavljeno: 6. 5. 2021. 21:12:01
Arie

Arie

94 svidjanja u 285 postova.

Grupa: User

Wrote

Wrote

We really need a linux port



I agree. Maybe, just an adjustment of the command line for establishing the socket connection is required. Under Windows I use

maxima-installation-path/bin/maxima.bat -l sbcl -s

This requires
- the .net socket stuff and process control to work under mono,
- a unicode-proof lisp compiler to be installed (which accepts utf-8 socket encoding), under win the only one is steel bank common lisp (SBCL).

Also, I need to know the name of the maxima process for detection of active maxima processes via System.Diagnostics.Process.GetProcessesByName(name). This is required to identify the pid for later kill. Under windows this might be "maxima" or "lisp" or "sbcl". This has changed over the years and may be different under linux.

The plugin might work even as it is, if the maxima startup script is renamed to maxima.bat.

Any information from the linuxing SMatheers is welcome.

BTW, there is a maxima build for android as well...

EDIT: It would also help, if someone could explain me how to build and debug the plugin under Linux. Under Win, I use VS 2015 with the project as found in the SVN repository. Otherwise I need to blindly make changes under win and install and test under linux. This would be a huge drawback compared to the win-only workflow, where compiling and running SMath with the new build in the debugger is just a push of a single button...



Bringing up this topic again. Has there been any progress on this?

Is this at all helpful for building the plugin in linux?

https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/intro
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#297 Objavljeno: 7. 5. 2021. 05:36:07
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Wrote

Wrote

Wrote

We really need a linux port



I agree. Maybe, just an adjustment of the command line for establishing the socket connection is required. Under Windows I use

maxima-installation-path/bin/maxima.bat -l sbcl -s

This requires
- the .net socket stuff and process control to work under mono,
- a unicode-proof lisp compiler to be installed (which accepts utf-8 socket encoding), under win the only one is steel bank common lisp (SBCL).

Also, I need to know the name of the maxima process for detection of active maxima processes via System.Diagnostics.Process.GetProcessesByName(name). This is required to identify the pid for later kill. Under windows this might be "maxima" or "lisp" or "sbcl". This has changed over the years and may be different under linux.

The plugin might work even as it is, if the maxima startup script is renamed to maxima.bat.

Any information from the linuxing SMatheers is welcome.

BTW, there is a maxima build for android as well...

EDIT: It would also help, if someone could explain me how to build and debug the plugin under Linux. Under Win, I use VS 2015 with the project as found in the SVN repository. Otherwise I need to blindly make changes under win and install and test under linux. This would be a huge drawback compared to the win-only workflow, where compiling and running SMath with the new build in the debugger is just a push of a single button...



Bringing up this topic again. Has there been any progress on this?

Is this at all helpful for building the plugin in linux?

https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/intro



There is no progress from my side. Also, for me, there is no chance of digging into it for at least one more year. If someone wants to do that now, I am ready to help. Yet I think that the plugin is merely a demonstrator of what could be done. It lacks a systematic and clean approach, due to lack of proper knowledge on SMath, Maxima and C# internals. It definitely requires a lot of refactoring or re-design from scratch before extending it.




Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#298 Objavljeno: 13. 5. 2021. 15:44:42
pk_mechanical_eng

pk_mechanical_eng

0 svidjanja u 3 postova.

Grupa: User

Hi Guys,

I'am using Smath for quite a while and already tried to use the Maxima plugin several times without any success.

I was able to do the setup as shown here: https://en.smath.com/forum/yaf_postst2078_Maxima-Plugin.aspx

But unfortunately in Smath the Int() function for symbolic integration never works. I'm pretty sure that I'm missing a little part. Can anyone help me please?

Example:
MaximaPlugin.PNG

When I do define x I get the following error
MaximaPlugin1.PNG

And when I do assign something else than a number i get:
MaximaPlugin2.PNG
#299 Objavljeno: 13. 5. 2021. 17:05:17
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Wrote

Hi Guys,

I'am using Smath for quite a while and already tried to use the Maxima plugin several times without any success.

I was able to do the setup as shown here: https://en.smath.com/forum/yaf_postst2078_Maxima-Plugin.aspx

But unfortunately in Smath the Int() function for symbolic integration never works. I'am pretty sure that I'am missing a little part. Can anyone help me please?

Example:
MaximaPlugin.PNG



This is because you use numeric optimization (context menu). If you expect symbolic results, use symbolic optimization ("none" also works, it shows the result from Maxima without further processing by SMath).

Wrote



When I do define x I get the following error
MaximaPlugin1.PNG


The error message is correct. The integration variable must be unassigned.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#300 Objavljeno: 13. 5. 2021. 20:03:57
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

I'am using Smath for quite a while and already


... but you have missed the best from Generous Smath Community.
1. Always/first plot the integrand.
2. You integrate over a ranged variate.
3. maple is delivered with native Smath.

Integrate wisely.PNG
  • Novi postovi
  • Nema novih postova