Smath issue with exp as matrix

Smath issue with exp as matrix - Сообщения

#1 Опубликовано: 24.12.2024 23:32:05
Cornel

Cornel

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

Группа: User

Hi,

exp matrix.jpg
#2 Опубликовано: 25.12.2024 00:36:45
NDTM Amarasekera

NDTM Amarasekera

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

Группа: User

Is this OK ? I am not sure.

Example matrix of exp.png
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
#3 Опубликовано: 25.12.2024 00:37:52
Davide Carpi

Davide Carpi

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

Группа: Moderator

Matrix exponential is not implemented.

You can replicate in SMath what the Maxima engine does with the vecotrize() function (otherwise by default SMath tries to perform a scalar operation and fails).

2024-12-24 18_36_34-SMath Solver - [test.sm_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 Опубликовано: 25.12.2024 00:42:44
Cornel

Cornel

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

Группа: User

But still the SMath result is not the same as the Mathcad result...
#5 Опубликовано: 25.12.2024 00:54:48
Cornel

Cornel

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

Группа: User

Wrote

But still the SMath result is not the same as the Mathcad result...



I think it's because as Davide said, Matrix exponential is not implemented in SMath. But then how to calculate the Matrix exponential in SMath? There is a way somehow?
#6 Опубликовано: 25.12.2024 11:57:40
Oscar Campo

Oscar Campo

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

Группа: Moderator

Wrote

Hi,

exp matrix.jpg



This is the answer via wolfram alpha:
IMG_3096.jpg


Is the same obtained via vectorize function on SMath. Maybe your file or configuration on Mathcad have some parameters you are not mentioning?
2 пользователям понравился этот пост
Alvaro Diaz Falconi 25.12.2024 13:24:00, Davide Carpi 25.12.2024 16:55:00
#7 Опубликовано: 25.12.2024 13:29:01
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Hi Cornel. The exponential function is a well-defined function from the complex plane into the complex plane. A possible extension to its domain and range being square matrices analogous to the ordinary exponential function can be defined as e^A = sum(A^k, k=1...infinity). And notice that this is valid only for square matrices, not for the general case.

In general, the other CASs have special functions for this extension of the exponential function: expm in matlab, MatrixExp in wolfram mathematica, exponential in maple and matrixexp in maxima, which you can access from SMath:

mat-exp.png

mat-exp.sm (13 КиБ) скачан 69 раз(а).

So I guess if it is right for the developers of maxima, maple, mathematica and matlab to distinguish between both functions and to have specific instructions for each of them, then doing so in SMath is right, regardless of what the developers of mathcad think.

Best regards.
Alvaro.
2 пользователям понравился этот пост
Oscar Campo 25.12.2024 16:13:00, francesco rapuano 25.12.2024 16:47:00
#8 Опубликовано: 25.12.2024 13:37:45
Cornel

Cornel

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

Группа: User

Wrote

Hi Cornel. The exponential function is a well-defined function from the complex plane into the complex plane. A possible extension to its domain and range being square matrices analogous to the ordinary exponential function can be defined as e^A = sum(A^k, k=1...infinity). And notice that this is valid only for square matrices, not for the general case.

In general, the other CASs have special functions for this extension of the exponential function: expm in matlab, MatrixExp in wolfram mathematica, exponential in maple and matrixexp in maxima, which you can access from SMath:

mat-exp.png

mat-exp.sm (13 КиБ) скачан 69 раз(а).

So I guess if it is right for the developers of maxima, maple, mathematica and matlab to distinguish between both functions and to have specific instructions for each of them, then doing so in SMath is right, regardless of what the developers of mathcad think.

Best regards.
Alvaro.



Ok, understood. This was the thing I was looking for. Thank You.
#9 Опубликовано: 26.12.2024 00:06:22
overlord

overlord

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

Группа: Moderator

Wrote

In general, the other CASs have special functions for this extension of the exponential function: expm in matlab, MatrixExp in wolfram mathematica, exponential in maple and matrixexp in maxima, which you can access from SMath:


It seems there is also MatrixExponential in newer maple versions.
I tried to solve this problem using maple plugin by its library with(LinearAlgebra) command in maple, but couldn't prevail.
Old LinearAlgebra library lacks this particular command. Then you posted this solution.

Regards
#10 Опубликовано: 26.12.2024 00:26:14
Cornel

Cornel

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

Группа: User

If it were possible to update from maple 6 to the latest version of maple...then would be great to stay up to date with the latest maple engine and with his latest available capabilities, but i understood that this is not possible..right?
#11 Опубликовано: 26.12.2024 00:35:01
Вячеслав Мезенцев

Вячеслав Мезенцев

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

Группа: Moderator

It's possible, but not as part of a plugin. I don't use maple often, so I'm too lazy to spend time on it.
Russia ☭ forever, Viacheslav N. Mezentsev
#12 Опубликовано: 26.12.2024 00:44:16
Cornel

Cornel

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

Группа: User

Wrote

It's possible, but not as part of a plugin. I don't use maple often, so I'm too lazy to spend time on it.




But how to use then the latest maple engine If it's possible?

From my point of view If someone can make possible to use every time the latest version of maple engine in SMath then it would rise a lot SMath


And If You dont use often maple 6, then what you use? Maxima?
#13 Опубликовано: 26.12.2024 00:50:35
Cornel

Cornel

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

Группа: User

@uni there is also wolfram engine for developers FREE to use...but how to integrate this in SMath?

See below:

https://writings.stephenwolfram.com/2019/05/launching-today-free-wolfram-engine-for-developers/

And this wolfram engine for developers it's updated as latest wolfram mathematica engine, even though the article is from 2019
#14 Опубликовано: 26.12.2024 01:18:29
Cornel

Cornel

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

Группа: User

Maybe someone can announce, call or tell somehow to the SMath owner to integrate wolfram engine in SMath..
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений