1 páginas (11 elementos)
Not quadrat matrix - Mensajes
The work with not quadrat matrix.
How better solve?
See please the attached sm-file.
1-Asteroid-5-Points.sm (25,84 KiB) descargado 1466 vez(es).
How better solve?
See please the attached sm-file.
1-Asteroid-5-Points.sm (25,84 KiB) descargado 1466 vez(es).
WroteThe work with not quadrat matrix.
How better solve?
As it looks, the blue planet and green voyager are tangent.
Take care Valery ... Jean.
1-Asteroid-5-Points.sm (34,41 KiB) descargado 1425 vez(es).
Hi Valery. You can use dn_LinAlgLLS_SVD or dn_LinAlgLLS_COF or dn_LinAlgLLS_QRorLQ for non-square matrices, instead dn_LinAlgSolve.
1-Asteroid-5-Points.sm (27,71 KiB) descargado 1479 vez(es).
Best regards.
Alvaro.
1-Asteroid-5-Points.sm (27,71 KiB) descargado 1479 vez(es).
Best regards.
Alvaro.
A 1 usuarios les gustó este mensaje
Valery Ochkov 2/11/2023 1:46:00
Thanks Alvaro.
New problem with Ranks
10-2-Asteroid-7-points-Rank.sm (16,06 KiB) descargado 1474 vez(es).

New problem with Ranks
10-2-Asteroid-7-points-Rank.sm (16,06 KiB) descargado 1474 vez(es).

Wrote... New problem with Ranks
Hi Valery. SMath really needs to improve on linear algebra. As a workaround, you can redefine rank with a plugin

Also, the problem with rank is not that it can't deal with complicated arrays, it can't handle simple ones either

10-2-Asteroid-7-points-Rank.sm (19,23 KiB) descargado 1436 vez(es).
Best regards-
Alvaro.
A 2 usuarios les gustó este mensaje
WroteWhy?
Hi. Due to numerical errors. These ranks are evaluated with numerical procedures. That means that for some cases they must necessarily fail. You can introduce some kind of tolerance in the function. Maple also fails in this example.

This shows that the rank function that is executed is that of maple.

However, I don't know how to call Maxima's rank function, it is not in the Takeover options.
Here some notes about how to handle a little better the issue.
10-2-Asteroid-7-points-Rank.sm (35,26 KiB) descargado 1479 vez(es).
Best regards.
Alvaro.
A 1 usuarios les gustó este mensaje
Valery Ochkov 3/11/2023 8:24:00
Maxima gives the correct answer. Yet I think that maple is not to blame, because maple(rank(M)) sends 4 to maple. At least this happens with Maxima(rank(M)).
In Maxima I have a workaround for such cases. First I convey the definition of M to Maxima and then call rank(M). The format "$...§" conveys everything inside the markup as verbatim expression to Maxima. without giving SMath the chance to interfere.
Should not be too complicated to add rank() to the takeover candidates.
![2023-11-03 13_03_03-SMath Solver 1.0.8477 - [10-2-Asteroid-7-points-Rank (1).sm_].png](/es-ES/files/Download/4rw62K/2023-11-03-13_03_03-SMath-Solver-1.0.8477---[10-2-Asteroid-7-points-Rank-(1).sm_].png)
10-2-Asteroid-7-points-Rank _Kr.sm (40,03 KiB) descargado 1462 vez(es).
In Maxima I have a workaround for such cases. First I convey the definition of M to Maxima and then call rank(M). The format "$...§" conveys everything inside the markup as verbatim expression to Maxima. without giving SMath the chance to interfere.
Should not be too complicated to add rank() to the takeover candidates.
![2023-11-03 13_03_03-SMath Solver 1.0.8477 - [10-2-Asteroid-7-points-Rank (1).sm_].png](/es-ES/files/Download/4rw62K/2023-11-03-13_03_03-SMath-Solver-1.0.8477---[10-2-Asteroid-7-points-Rank-(1).sm_].png)
10-2-Asteroid-7-points-Rank _Kr.sm (40,03 KiB) descargado 1462 vez(es).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
A 2 usuarios les gustó este mensaje
Hi Martin.
Nope. The issue is about a matrix C=augment( A,b ), where b is a column vector so, it must to have the same rank as A.

Either. In some way maple holds the rank function and evaluates it on its own kernel. Actually, the example with the matrix M is for show that.
Best regards.
Alvaro.
WroteMaxima gives the correct answer ...
Nope. The issue is about a matrix C=augment( A,b ), where b is a column vector so, it must to have the same rank as A.

Wrote... Yet I think that maple is not to blame, because maple(rank(M)) sends 4 to maple. At least this happens with Maxima(rank(M)).
Either. In some way maple holds the rank function and evaluates it on its own kernel. Actually, the example with the matrix M is for show that.
Best regards.
Alvaro.
A 1 usuarios les gustó este mensaje
Valery Ochkov 5/11/2023 3:08:00
1 páginas (11 elementos)
- Nuevos mensajes
- Sin mensajes nuevos

