Long Formula Writing

Long Formula Writing - How to Write in a compact Form a Long Formula ? - Messages

#1 Posted: 10/26/2023 8:52:03 PM
ioan92

ioan92

171 likes in 102 posts.

Group: User

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 range of know-how.
How to compact.sm (13 KiB) downloaded 24 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

Do to others as you would like them to do to you! Knowledge is of no value unless you put it into practice - Chekhov
#2 Posted: 10/26/2023 11:37:21 PM
NotRetiredYet

NotRetiredYet

2 likes in 9 posts.

Group: User

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
2 users liked this post
Oscar Campo 10/27/2023 12:12:00 AM, ioan92 10/27/2023 12:22:00 AM
#3 Posted: 10/27/2023 12:22:03 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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 (22 KiB) downloaded 40 time(s).
#4 Posted: 10/27/2023 12:34:35 AM
ioan92

ioan92

171 likes in 102 posts.

Group: User

Wrote

...

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
Do to others as you would like them to do to you! Knowledge is of no value unless you put it into practice - Chekhov
#5 Posted: 10/27/2023 12:54:35 AM
ioan92

ioan92

171 likes in 102 posts.

Group: User

Wrote

Wrote

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 (22 KiB) downloaded 40 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

Do to others as you would like them to do to you! Knowledge is of no value unless you put it into practice - Chekhov
#6 Posted: 10/28/2023 3:04:46 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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.
#7 Posted: 11/1/2023 9:00:55 AM
Noah Brown

Noah Brown

0 likes in 1 posts.

Group: User

Wrote

Wrote

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 (22 KiB) downloaded 40 time(s).



thankssssss
  • New Posts New Posts
  • No New Posts No New Posts