Maxima Plugin

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

#321 Опубликовано: 20.06.2025 22:17:29
overlord

overlord

566 сообщений из 1 343 понравились пользователям.

Группа: Moderator

Draw2D() works.
Draw3D() also works.

2025-06-21_01-17.png
Отредактировано 20.06.2025 22:18:20
4 пользователям понравился этот пост
sergio 21.06.2025 08:21:05, NDTM Amarasekera 22.06.2025 08:35:56, Martin Kraska 21.06.2025 09:52:50, Alvaro Diaz Falconi 21.06.2025 05:34:52
#322 Опубликовано: 21.06.2025 09:51:42
Martin Kraska

Martin Kraska

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

Группа: Moderator

Actually, user fakemoses has fixed the Linux path issues in January 2024 (as can be seen in the history in the code repository). At that time there were still issues with the server side compilation of the plugin (the version from the extension manager didn't work, the local version of fakemoses worked). This seems to be fixed now from SMath side.

Thus, I encourage the Linuxing SMathers to give it a try.
Martin KraskaPre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
6 пользователям понравился этот пост
sergio 21.06.2025 15:03:53, Davide Carpi 21.06.2025 10:25:17, overlord 21.06.2025 11:54:21, Alvaro Diaz Falconi 21.06.2025 17:34:29, Andrey Ivashov 21.06.2025 20:54:18, NDTM Amarasekera 22.06.2025 08:35:44
#323 Опубликовано: 28.08.2025 18:57:43
overlord

overlord

566 сообщений из 1 343 понравились пользователям.

Группа: Moderator

This doesn't work, yet it should.

2025-08-28_21-48.png

When I debugged it, obviously something is wrong with syntax.

2025-08-28_21-49.png

When I corrected it, it could calculate finally.

2025-08-28_21-55.png

Otherwise, this equations can't be solved with smath-maxima.
#324 Опубликовано: 28.08.2025 19:37:07
Martin Kraska

Martin Kraska

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

Группа: Moderator

according to the Maxima reference to_poly_solve wants lists or sets as arguments, not matrices.

image.png
Martin KraskaPre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
overlord 28.08.2025 19:44:03
#325 Опубликовано: 28.08.2025 19:47:08
overlord

overlord

566 сообщений из 1 343 понравились пользователям.

Группа: Moderator

Wrote

according to the Maxima reference to_poly_solve wants lists or sets as arguments, not matrices.


I thought it need matrices since all maxima Solve() examples in Reference Book are with matrix.
Thanks

Any opinion how to get rid of that union()?
Отредактировано 28.08.2025 19:49:17
#326 Опубликовано: 28.08.2025 19:57:08
Martin Kraska

Martin Kraska

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

Группа: Moderator

Solve is a special case, because it is not a direct call to Maxima's function solve() but a lot of work has been done to make it more forgivable in the input format, just like FindRoot(), there you can feed matrices or lists and I would not be surprised if also line() would work.
Also, solve() returns it result as a nested list of lists if there is more than one solution. Nested lists don't survive in SMath processing, so we had to replace the outer list by a matrix (row vector, for better optics).

This all is not done if you use direct calls via the maxima function. The to_poly_function obviously uses the union() expression as wrapping construct for multiple solutions, which should be safe. Yet, you have to find out yourself, how to access the individual arguments of union() to access individual solutions. The arg() function does the job,

image.png
Отредактировано 28.08.2025 19:59:06
Martin KraskaPre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
3 пользователям понравился этот пост
Oscar Campo 29.08.2025 09:39:23, francesco rapuano 29.08.2025 11:01:38, overlord 29.08.2025 14:49:52
  • Новые сообщения
  • Нет новых сообщений