Maxima Plugin

Maxima Plugin - Сообщения

#281 Опубликовано: 24.03.2020 11:10:39
netsonicyxf

netsonicyxf

2 сообщений из 79 понравились пользователям.

Группа: 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 КиБ) скачан 83 раз(а).
#282 Опубликовано: 24.03.2020 13:01:31
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Why so much trouble for ordinary stuff vs Smath Native ?

Native.PNG
#283 Опубликовано: 24.03.2020 22:22:03
netsonicyxf

netsonicyxf

2 сообщений из 79 понравились пользователям.

Группа: 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 КиБ) скачан 74 раз(а).
#284 Опубликовано: 25.03.2020 00:32:16
CBG

CBG

77 сообщений из 312 понравились пользователям.

Группа: User

put the optimization to symbolic or none

Maple_simbolic.png

Best Regards

Carlos
#285 Опубликовано: 25.03.2020 06:04:40
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#286 Опубликовано: 25.03.2020 09:46:52
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 08.10.2020 07:00:15
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 КиБ) скачан 101 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 пользователям понравился этот пост
sergio 08.10.2020 15:45:00, IVR 10.10.2020 12:24:00
#288 Опубликовано: 10.10.2020 20:52:49
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Get more from less ... typical.

Int More.PNG
#289 Опубликовано: 23.11.2020 16:28:27
Fridel Selitsky

Fridel Selitsky

520 сообщений из 451 понравились пользователям.

Группа: User

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


povorot1.sm (74 КиБ) скачан 87 раз(а).
SpiralMaxima.sm (45 КиБ) скачан 80 раз(а).


3 пользователям понравился этот пост
Andrey Ivashov 23.11.2020 17:36:00, IVR 25.11.2020 07:19:00, Martin Kraska 23.11.2020 18:06:00
#290 Опубликовано: 23.11.2020 16:35:47
Fridel Selitsky

Fridel Selitsky

520 сообщений из 451 понравились пользователям.

Группа: User

Visualization of animation steps

Slider.sm (159 КиБ) скачан 84 раз(а).
2 пользователям понравился этот пост
Andrey Ivashov 23.11.2020 17:36:00, Martin Kraska 23.11.2020 18:06:00
#291 Опубликовано: 23.11.2020 18:15:12
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 КиБ) скачан 90 раз(а).
povorot1_kr.png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Fridel Selitsky 23.11.2020 19:10:00
#292 Опубликовано: 23.11.2020 18:35:41
Fridel Selitsky

Fridel Selitsky

520 сообщений из 451 понравились пользователям.

Группа: User

Vibrations of a rectangular membrane





Vibration Restangular Membrane.sm (184 КиБ) скачан 98 раз(а).
1 пользователям понравился этот пост
Andrey Ivashov 23.11.2020 19:03:00
#293 Опубликовано: 23.11.2020 19:10:35
Fridel Selitsky

Fridel Selitsky

520 сообщений из 451 понравились пользователям.

Группа: User

Thanks a lot, Martin. Wonderful! I was not aware of the IsDefined function.
#294 Опубликовано: 24.11.2020 11:09:18
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Thanks Champions: Martin, Ber7
#295 Опубликовано: 24.11.2020 17:37:40
Fridel Selitsky

Fridel Selitsky

520 сообщений из 451 понравились пользователям.

Группа: User

Vibrations of a circular membrane.The general case

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



CircleAntisiimmetr.sm (252 КиБ) скачан 82 раз(а).
#296 Опубликовано: 06.05.2021 21:12:01
Arie

Arie

93 сообщений из 285 понравились пользователям.

Группа: 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 Опубликовано: 07.05.2021 05:36:07
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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.




Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#298 Опубликовано: 13.05.2021 15:44:42
pk_mechanical_eng

pk_mechanical_eng

0 сообщений из 3 понравились пользователям.

Группа: 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 Опубликовано: 13.05.2021 17:05:17
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#300 Опубликовано: 13.05.2021 20:03:57
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений