Maple Tools

Maple Tools - Symbolic engine for SMath Studio. - Messaggi

#461 Pubblicato: 26/12/2024 14:47:54
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Wrote

In addition to names, parameter types also need to be converted. They need to be supported in both directions. As for trigonometric functions, the SMath tries to automatically work with names, which prevents them from being supported in the plugin in a controlled way.



Hi Viacheslav. Forgetting about types for a moment, if you add a line with "alias(arg=argument, asin=arcsin, ... )" and some other aliases to the plugin's "in.tmp" file, wouldn't it do the conversion automatically?

alias.png

alias2.png

Best regards.
Alvaro.
#462 Pubblicato: 26/12/2024 15:18:42
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

You can check it yourself. The plugin supports including custom commands using the "with.inc" file. The file content is added automatically with each conversion to the in.tmp file header.
Russia ☭ forever, Viacheslav N. Mezentsev
1 utenti hanno apprezzato questo post
Alvaro 26/12/2024 15:50:00
#463 Pubblicato: 26/12/2024 15:54:20
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Hi Viacheslav. This is the modified with.inc:

with(linalg):with(inttrans):with(plots):
alias(arg=argument, sign=signum, u=Heaviside): 
alias(asin=arcsin, acos=arccos, atan=arctan): 
alias(asec=arcsec, acsc=arccsc, acot=arccot): 
alias(asinh=arcsinh, acosh=arccosh, atanh=arctanh):
alias(asech=arcsech, acsch=arccsch, acoth=arccoth):

And this is the test:

alias.sm (8,84 KiB) scaricato 1791 volta(e).

alias.png

I use u=Heaviside because there is a plugin with this function, useless for integration, but there must be some other better name. Also, there are some other functions, like GAMMA, Bessel, Airy, etc.

Best regards.
Alvaro.
1 utenti hanno apprezzato questo post
#464 Pubblicato: 30/07/2025 14:48:24
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Since the maple plugin is used as an intermediary, all interpreters based on it will be located here.

In the future, a separate plugin can be made to remove unnecessary transformations.

The python.exe interpreter must be accessible via known paths.

maple-python-mode.sm (12,22 KiB) scaricato 1462 volta(e).

image.png

The octave-cli.exe interpreter must be accessible via known paths.

maple-octave-mode.sm (12,45 KiB) scaricato 1578 volta(e).

image.png
Russia ☭ forever, Viacheslav N. Mezentsev
#465 Pubblicato: 30/07/2025 15:52:21
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

The same for Tiny C Compiler

maple-tcc-mode.sm (14,41 KiB) scaricato 1466 volta(e).

image.png
Russia ☭ forever, Viacheslav N. Mezentsev
1 utenti hanno apprezzato questo post
Andrey Ivashov 31/07/2025 23:43:05
#466 Pubblicato: 12/11/2025 06:55:56
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: User


Thanks, Slava!
See pls the attach
mapletools-implicitplot3d-Nautilus.sm (271,98 KiB) scaricato 1058 volta(e).

How can we to put correct view - as in the Maple-picture?
#467 Pubblicato: 13/11/2025 01:42:01
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Hi Valery. I don't know from which version of Maple has implicit plot 3D, but I'm sure version 6 doesn't have it. You can try pMesh or pSurf.

image.png

pMesh-implicit.sm (123,13 KiB) scaricato 970 volta(e).

Best regards.
Alvaro.
Modificato 13/11/2025 01:43:51
#468 Pubblicato: 13/11/2025 05:14:51
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: User

Wrote

Hi Valery. I don't know from which version of Maple has implicit plot 3D, but I'm sure version 6 doesn't have it. You can try pMesh or pSurf.

image.png

pMesh-implicit.sm (123,13 KiB) scaricato 970 volta(e).

Best regards.
Alvaro.



Thanks, Alvaro!
See pls attachs
mapletools-implicitplot3d-Nautilus.pdf (489,57 KiB) scaricato 539 volta(e).
mapletools-implicitplot3d-Nautilus.sm (274,4 KiB) scaricato 1039 volta(e).
Nautilus.sm (45,81 KiB) scaricato 976 volta(e).
Modificato 13/11/2025 05:29:54
#469 Pubblicato: 13/11/2025 06:56:15
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Oh, I see. Maple 6 have that function. I also had no idea that you could use setprop with maple plots. I guess then that what you need is to find the right projection. It's difficult since it's not interactive. Maybe this helps.

image.png

mapletools-implicitplot3d-Nautilus mod.sm (26,32 KiB) scaricato 1018 volta(e).

Best regards.
Alvaro.
1 utenti hanno apprezzato questo post
Valery Ochkov 13/11/2025 11:11:31
#470 Pubblicato: 14/11/2025 03:46:14
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: User

Tanks, Alvaro!
See pls
mapletools-implicitplot3d-Nautilus.png
mapletools-implicitplot3d-Nautilus.sm (17,81 KiB) scaricato 986 volta(e).
Modificato 14/11/2025 03:53:50
#471 Pubblicato: 14/11/2025 08:50:30
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Hi. Some improvements, I guess. You can sterilize the units inside a wrapper function. Also, using scaling=constrained looks with the real proportions.

image.png

mapletools-implicitplot3d-Nautilus (2).sm (20,29 KiB) scaricato 972 volta(e).

In Maple 11:

nautilus.gif

Also, from other post from you, notice that you can write the temperatures like this

image.png

Best regards.
Alvaro.
Modificato 14/11/2025 09:06:20
1 utenti hanno apprezzato questo post
Valery Ochkov 14/11/2025 09:23:42
#472 Pubblicato: 18/11/2025 09:07:03
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: User

Can you solve this problem? The submarine's cross-section is an ellipse, and the bow and stern are halves of the ellipsoid.
Слабо?
Modificato 18/11/2025 09:07:54
#473 Pubblicato: 19/11/2025 07:35:25
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Wrote

Can you solve this problem? The submarine's cross-section is an ellipse, and the bow and stern are halves of the ellipsoid.
Слабо?



Hi Valery. And what's the problem? It has a curious shape, but I suppose it's not one of the strangest I've seen. I don't know what problem you're trying to solve. I thought it was just about getting the graph like in Mathcad.

Best regards.
Alvaro.
#474 Pubblicato: 19/11/2025 10:47:29
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: User

Wrote

Wrote

Can you solve this problem? The submarine's cross-section is an ellipse, and the bow and stern are halves of the ellipsoid.
Слабо?



Hi Valery. And what's the problem? It has a curious shape, but I suppose it's not one of the strangest I've seen. I don't know what problem you're trying to solve. I thought it was just about getting the graph like in Mathcad.

Best regards.
Alvaro.


Thanks Alvaro for the interest.
The problem - the submarine's cross-section is an ellipse, and the bow and stern are halves of the ellipsoid.
V, S, L=constants, a, b -?
By symbolic and/or numeric math. With 3D-plot with animation!
subm-ellipe.png
Modificato 19/11/2025 10:49:19
#475 Pubblicato: 20/11/2025 01:38:49
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Hy Valery. Assuming the cameraman was very skilled and there's no roll angle, and disregarding perspective effects, you can try adjusting the values ​​for a setup similar to the following

image.png

submarine ellipse.sm (295,35 KiB) scaricato 958 volta(e).

Best regards
Alvaro
1 utenti hanno apprezzato questo post
#476 Pubblicato: 21/11/2025 17:13:21
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: User

Wrote

Hy Valery. Assuming the cameraman was very skilled and there's no roll angle, and disregarding perspective effects, you can try adjusting the values ​​for a setup similar to the following

image.png

submarine ellipse.sm (295,35 KiB) scaricato 958 volta(e).

Best regards
Alvaro



How to calculate the length of an ellipse and the area of an ellipsoid?
#477 Pubblicato: 22/11/2025 00:23:09
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

As it is not a political question, you may rely on Wikipedia: https://en.wikipedia.org/wiki/Ellipsoid

grafik.png
elli.sm (13,46 KiB) scaricato 969 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 utenti hanno apprezzato questo post
Alvaro 22/11/2025 05:07:26
#478 Pubblicato: 22/11/2025 00:38:57
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Maxima can be replaced by Gnu Scientific Library plugin.

Edit: Alvaro found a typo and suggested to use the definition of the elliptic integrals directly.

grafik.png
elli.sm (19,21 KiB) scaricato 950 volta(e).
Modificato 22/11/2025 10:50:21
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
2 utenti hanno apprezzato questo post
Alvaro 22/11/2025 22:47:53, ioan92 28/11/2025 07:27:29
#479 Pubblicato: 23/11/2025 09:58:48
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Citazione

The problem - the submarine's cross-section is an ellipse, and the bow and stern are halves of the ellipsoid.
V, S, L=constants, a, b -?



The (possibly) elliptical outer hull of the submarine doesn't carry pressure loads. The cross section of the actual internal pressure vessel seems to consist of two circle segments. Elliptical sections would easily collapse under external pressure. Circular sections are bending-free and the internal and external bulkheads and stringers just prevent the hull from buckling due to compressive membrane stress. The outer hull may contribute to that in the sense of a sandwich design. Of course, there might be non-uniform pressure loads due to nearby detonations or collisions with the ground or other vessels.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 utenti hanno apprezzato questo post
Alvaro 25/11/2025 03:27:35
  • Nuovi post
  • Nessun nuovo post