Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Razonar  
#1 Posted : 25 November 2018 08:27:56(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. Example about how to get vectorial differential operators in a curvilinear coordinate system.

Clipboard01.gif

coords.sm (87kb) downloaded 111 time(s).

Best regards.
Alvaro.
thanks 3 users thanked Razonar for this useful post.
on 25/11/2018(UTC),  on 25/11/2018(UTC),  on 30/05/2019(UTC)

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline mkraska  
#2 Posted : 25 November 2018 14:20:58(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
That's worth being implemented in a plugin.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jean Giraud  
#3 Posted : 25 November 2018 20:59:29(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
My preference goes for direct algo style(s)... Just one demo.

Jacob(f,x,y,z).PNG
Offline Razonar  
#4 Posted : 26 November 2018 08:32:17(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: mkraska Go to Quoted Post
That's worth being implemented in a plugin.


Hi Martin. I prefer the 'library style' instead the 'plugin style' for developing apps for SMath. Reasons have a lot. For instance, is the maple and matlab's historical grow path. Also I can point following benefits:

- improving SMath itself, discovering better ways for doing internals, or for requesting features.
- increase of bugs discovering
- source code in high level language (SMath lang), so, more easy for debugging
- more users can collab developing or improving the libraries

The biggest disadvantage: speed. But maybe this can help Andrey to find more robust algorithms.

As an application of these comments, I have this suggestions

- Add "nabla x" and "nabla dot" like grad and lapl to custom gliphs
- Same thing, but for several variables and vectorial integrals (path, flux, etc.)
- Improve at function for handling v=P where v and P are vectors (see green comments in the attached)
- Make custom gliphs and include plugins internal
- If include can't find in the sm file in the same folder than the current file, nor the specify path, search it in some "library folder" under apps default path.
- The set of 'libraries' could be a plugin itself, and have some kind of actualization, like the others plugins, examples or handbooks.
- In the attached, the 'library' style for the differentials applications, and help for get a large collection of coordinates systems, if in case that same one want to write the 'library'

coords v2.sm (111kb) downloaded 58 time(s).

Best regards.
Alvaro.

Edited by user 26 November 2018 08:35:38(UTC)  | Reason: Not specified

thanks 2 users thanked Razonar for this useful post.
on 26/11/2018(UTC),  on 26/11/2018(UTC)
Offline Jean Giraud  
#5 Posted : 26 November 2018 17:50:57(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Thanks Alvaro, lot of work/skill in there !
Offline Razonar  
#6 Posted : 07 December 2018 20:55:24(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. Some few samples.

Integral in polars.sm (49kb) downloaded 68 time(s).

Best regards.
Alvaro.
thanks 1 user thanked Razonar for this useful post.
on 07/12/2018(UTC)
Offline Jean Giraud  
#7 Posted : 07 December 2018 21:18:58(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Thanks Alvaro: works great

Jean
Offline mkraska  
#8 Posted : 11 December 2018 17:56:12(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: Razonar Go to Quoted Post

Hi Martin. I prefer the 'library style' instead the 'plugin style' for developing apps for SMath. Reasons have a lot. For instance, is the maple and matlab's historical grow path. Also I can point following benefits:

- improving SMath itself, discovering better ways for doing internals, or for requesting features.
- increase of bugs discovering
- source code in high level language (SMath lang), so, more easy for debugging
- more users can collab developing or improving the libraries

The biggest disadvantage: speed. But maybe this can help Andrey to find more robust algorithms.

Best regards.
Alvaro.


Hi Alvaro,

I totally agree with your points. There have been feature requests in the past to enable "source code plugins", which could benefit from the same distribution and versioning mechanism but be provided as sm files.

In fact, there is an alternative mechanism: snippets. They allow you to distribute pieces of code via extension manager and to easily insert them into a given sheet as a collapsed area region. The drawback (or benefit) is that further updates of the snippet won't affect the sheet once the snippet has been inserted. If you want to apply a bug fix for a snippet, you have to erase and re-insert.

I use the draw snippet a lot, it defines help texts for the available Maxima draw objects, which essentially mitigates any need for lookup in the docs (once you are familiar with the concept).

Some functions, just like symbolic calculus, would be tough to implement in native SMath. Also there is a lot of numeric libraries out there, which would perhaps be interesting to re-invent for didactic reasons but otherwise better just being interfaced to SMath.

Thus it might be worth publishing a library of co-ordinate system descriptions and helper functions along with documentation as a snippet.

Best regards, Martin

Polar integration in symbolic version:

2018-12-11 15_45_11-SMath Studio - [Integral%20in%20polars_Kr.sm_].png
Integral%20in%20polars_Kr.sm (58kb) downloaded 40 time(s).

Edited by user 11 December 2018 18:03:40(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 3 users thanked mkraska for this useful post.
on 11/12/2018(UTC),  on 11/12/2018(UTC),  on 11/12/2018(UTC)
Offline Jean Giraud  
#9 Posted : 13 December 2018 01:11:43(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Razonar Go to Quoted Post
Some few samples.


Thanks Alvaro: gorgeous, was missing up to your work. perfect SS 6179.
Doctored for myself, because some freak coding from the original transmission.

Cheers ... Jean

Integral 00000 2D polar Alvaro.sm (47kb) downloaded 39 time(s).
Offline Razonar  
#10 Posted : 14 December 2018 05:57:13(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: mkraska Go to Quoted Post

In fact, there is an alternative mechanism: snippets.


Hi Martin. Yes, snippets are great, and are the close way to a package or library distribution. But have two problems, in my view point: first, aren't collaborative, this is, are the one man work. And second, can't be updated but by deleting the old version in the sm file, and inserting the new one. If the uni' include plugin, after search in the file path, try to search in some special folder, like the folder for plugins, then snippets could be inserted by reference and updated in a similar way like plugins.

Originally Posted by: mkraska Go to Quoted Post

... there is a lot of numeric libraries out there, which would perhaps be interesting to re-invent for didactic reasons but otherwise better just being interfaced to SMath.


Yes. I'm some maniac about rewrite c libraries into high level others, like SMath. Also, those libraries are well tested and proved for a lot of years. An intermediate solution could be a SMath function installing dll libraries, like one can do in VBA for Excel, with Declare Function lib ... etc. . And the solution for write some efficient code in SMath for numerical procedures could be the equivalent of maple's compile directive (isn't in Maple V, it's more new).

Best regards.
Alvaro.
Offline MAM64  
#11 Posted : 29 April 2019 02:06:07(UTC)
MAM64

Rank: Newbie

Groups: Registered
Joined: 28/04/2019(UTC)
Posts: 4
Brazil
Location: Sao Paulo

Originally Posted by: Razonar Go to Quoted Post
Hi. Example about how to get vectorial differential operators in a curvilinear coordinate system.

Clipboard01.gif

coords.sm (87kb) downloaded 111 time(s).

Best regards.
Alvaro.


Thanks a lot!Clap
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.