Rank: Advanced Member Groups: Registered
Joined: 23/12/2012(UTC) Posts: 42 Was thanked: 153 time(s) in 119 post(s)
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 30/01/2019(UTC) Posts: 8 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.
|
2 users thanked NotRetiredYet for this useful post.
|
on 27/10/2023(UTC), on 27/10/2023(UTC)
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: ioan92 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).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/12/2012(UTC) Posts: 42 Was thanked: 153 time(s) in 119 post(s)
|
Originally Posted by: NotRetiredYet ... 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. Hi NotRetiredYet, Greetings from an AllreadyRetired,
Thank your for your suggestion. It's simplier and it works good:
Best Regards, Ioan
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/12/2012(UTC) Posts: 42 Was thanked: 153 time(s) in 119 post(s)
|
Originally Posted by: Jean Giraud Originally Posted by: ioan92 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
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: ioan92 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.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 01/11/2023(UTC) Posts: 1 Location: St Princeton, NJ
|
Originally Posted by: Jean Giraud Originally Posted by: ioan92 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 gridJean. Maths How to compact maple(op).sm (23kb) downloaded 18 time(s). thankssssss
|
|
|
|
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.