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 ioan92  
#1 Posted : 27 October 2023 02:52:03(UTC)
ioan92


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2012(UTC)
Posts: 42
France, Metropolitan

Was thanked: 153 time(s) in 119 post(s)
Hello Everybody,

Please, do you have some smarter solutions to write a long formula like this?

2023-10-26 15_33_38-SMath Solver - [How to compact.sm].png

I put inside the file my actual primarily Sad range of know-how.
How to compact.sm (14kb) downloaded 7 time(s).

Do you expect some improved solutions embedded in the system?
For instance: one alone split of a line seems in my opinion as being not enough.

Thanks for your attention,
Ioan

Edited by user 27 October 2023 04:11:16(UTC)  | Reason: Not specified

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

Offline NotRetiredYet  
#2 Posted : 27 October 2023 05:37:21(UTC)
NotRetiredYet

Rank: Newbie

Groups: Registered
Joined: 30/01/2019(UTC)
Posts: 8
Man
United States

Was thanked: 2 time(s) in 1 post(s)
I don't have SMath here at work (company policy), but the following technique should work. It works in Mathcad, which I do have at work.

Set the function equal to the sum of a four-element column vector, then split the function definition at the three plus signs that separate the major elements of the definition and drop these pieces into the column vector. Please pardon any typos on my part.

Fona.jpg
thanks 2 users thanked NotRetiredYet for this useful post.
on 27/10/2023(UTC),  on 27/10/2023(UTC)
Offline Jean Giraud  
#3 Posted : 27 October 2023 06:22:03(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: ioan92 Go to Quoted Post
Please, do you have some smarter solutions to write a long formula like this ?

The undocumented maple(op) has hidden virtue of simplifying.
Works fine your long formula ... 4th option.
Jean.

Maths How to compact maple(op).sm (23kb) downloaded 18 time(s).
Offline ioan92  
#4 Posted : 27 October 2023 06:34:35(UTC)
ioan92


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2012(UTC)
Posts: 42
France, Metropolitan

Was thanked: 153 time(s) in 119 post(s)
Originally Posted by: NotRetiredYet Go to Quoted Post
...

Set the function equal to the sum of a four-element column vector, then split the function definition at the three plus signs that separate the major elements of the definition and drop these pieces into the column vector. Please pardon any typos on my part.

Fona.jpg


Hi NotRetiredYet, Greetings from an AllreadyRetired,

Thank your for your suggestion. It's simplier and it works good:
How to compact.sm d.png

Best Regards,
Ioan
Offline ioan92  
#5 Posted : 27 October 2023 06:54:35(UTC)
ioan92


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2012(UTC)
Posts: 42
France, Metropolitan

Was thanked: 153 time(s) in 119 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: ioan92 Go to Quoted Post
Please, do you have some smarter solutions to write a long formula like this ?

The undocumented maple(op) has hidden virtue of simplifying.
Works fine your long formula ... 4th option.
Jean.

Maths How to compact maple(op).sm (23kb) downloaded 18 time(s).


Bonjour Jean,

Thank you for your proposal. Of course it could be seen as a forth solution.
As I see, Maple turns a little bit the terms but finally we heve always a sum of four main terms.

Merci encore,
Ioan

Offline Jean Giraud  
#6 Posted : 28 October 2023 09:04:46(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: ioan92 Go to Quoted Post
Merci encore ... Ioan

A great application of maple(op)
Suppose you have a long Lagrange canonical polynomial,
generously furbished of 15 D coefficients.
Tedious to collect all the coefficients by hand.
Click/click/done maple(op(Poly(x)))
Don't expand symbolic expr(x):=maple(op(Poly(x)))
... below expansion, set x:=1
evaluate the expansion ... all coefficients collected in vector.
Take care Ioan ... Jean.
Offline Noah Brown  
#7 Posted : 01 November 2023 15:00:55(UTC)
Noah Brown

Rank: Newbie

Groups: Registered
Joined: 01/11/2023(UTC)
Posts: 1
United States
Location: St Princeton, NJ

Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: ioan92 Go to Quoted Post
Please, do you have some smarter solutions to write a long formula like this ?

The undocumented maple(op) has hidden virtue of simplifying.
Works fine your long formula ... 4th option.immaculate grid
Jean.

Maths How to compact maple(op).sm (23kb) downloaded 18 time(s).


thankssssss Clap 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.