Split math expression into multiple lines

Split math expression into multiple lines - Split math expression into multiple lines - Сообщения

#1 Опубликовано: 18.03.2016 16:24:00
Ernesto

Ernesto

13 сообщений из 74 понравились пользователям.

Группа: User

Sometimes expressions get too long to stay within the margins. A way to split math expressions into multiple lines would be great for presentation of data in a clear way.
#2 Опубликовано: 18.03.2016 17:35:16
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Sometimes expressions get too long to stay within the margins.
A way to split math expressions into multiple lines would be great for presentation
of data in a clear way.



Ernesto,

That was a great feature of Mathcad. I do same as described by Ioan [decompose].
Eventually useful but useless in Smath, because the result from symbolic is in
many ways not treatable: very long coefficients, all expressed in rational form.

Jean

#3 Опубликовано: 18.03.2016 18:13:16
Alexander O. Melnik

Alexander O. Melnik

127 сообщений из 494 понравились пользователям.

Группа: Moderator

I would imagine Andrey could implement some sort of a wrap setting. It is all text after all.

On the other hand, if your equation does not fit in a page, are we trying to do too much in one equation? I did run into this issue myself and I ended up separating things
#4 Опубликовано: 18.03.2016 22:17:13
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

I would imagine Andrey could implement some sort of a wrap setting.
It is all text after all.

On the other hand, if your equation does not fit in a page, are we trying to do too much
in one equation? I did run into this issue myself and I ended up separating things



Easy in Mathcad, but might turn a blody mess.
Much easier to split in components in Smath and
lot more elegant.

Jean

Forum Split Equation.gif
#5 Опубликовано: 29.03.2016 12:34:03
Ruben Sidranski

Ruben Sidranski

17 сообщений из 463 понравились пользователям.

Группа: User

Jean,
You shrank the font. This was not always easy in SMath (newer feature) and some old codgers yell and scream when the font sizes change in reports . As you said about Mathcad ...
Wrote

That was a great feature of Mathcad...
Jean

I'm still holding on to Mathcad 15 for dear life (copied all license keys in triplicate) until I can transfer all or most of those sheets over to SMath.
I really don't want to go through what you went through on your version of Mathcad

#6 Опубликовано: 15.02.2018 04:08:29
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: Super Administrator

Implemented (with some limitations) starting from SMath Studio 0.99.6619. More info here: https://en.smath.info/forum/yaf_postst12530_SMath-Studio-0-99-6619--14-February-2018.aspx
#7 Опубликовано: 15.02.2018 13:49:58
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Implemented (with some limitations) starting from SMath Studio 0.99.6619.



If something similar to Mathcad 8 Pro <= 11 ... useless.
It was demonstrated by Mathsoft, was never used by Collabs [> 125000 exchanges]
Hyper delicate to use as you had to first set the ONE line equation then split
by place holder/Enter. It could not be used for long symbolic derivatives whereas
symbolic expansion couldn't be collected.
I used it few times [typical Dirac symbolic integration].

The attached dates back two days ago, just refresh this morning.
BTW Andrey, from recollection, I think YOU gave Dragilev Parametric.
I have just made good use of it, delicate to make it profitable.
Wait few days for Contour Utilities to be attached.

Cheers Andrey, Jean

Contour_8 Hypersurface.sm (51 КиБ) скачан 93 раз(а).
#8 Опубликовано: 15.02.2018 14:33:23
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: Super Administrator

Wrote

If something similar to Mathcad 8 Pro <= 11 ... useless.


I didn't use this is Mathcad as well, but as I see from the Internet there was some special operator "+" which allowed to make a line break.
If it is a true, then answer is - no, it is done by absolutely different way. Equation uses standard operators. Break is supported for "+", "-" and "*" when it is possible to break equation where user wants.
In my point of view implemented approach is very convenient to use. This is implemented for cases when equation is larger then a paper size, so this is the only elegant way to show large equations.

I'm still working on this feature, so I expect some improvements will be added soon.
2 пользователям понравился этот пост
Davide Carpi 15.02.2018 15:15:00, frapuano 15.02.2018 19:22:00
#9 Опубликовано: 16.02.2018 01:24:35
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

I didn't use this is Mathcad as well, but as I see from the Internet there was some special operator " " which allowed to make a line break.
If it is a true, then answer is - no, it is done by absolutely different way. Equation uses standard operators. Break is supported for " ", "-" and "*" when it is possible to break equation where user wants.
In my point of view implemented approach is very convenient to use. This is implemented for cases when equation is larger then a paper size, so this is the only elegant way to show large equations.

I'm still working on this feature, so I expect some improvements will be added soon.



Up to Mathcad 11, '*' was not supported.
I can see "split" useful if Smath can download from source a long single line formula.
As well useful to export a long single line equation split for export.
From within Smath ??? There was a Mathcad continued fraction converter to Wallis algorithm.
This one does not work anymore here, my MCD 11 is only a back2back system.

Courage Kamarad !

Maths Split_Collect.sm (139 КиБ) скачан 177 раз(а).

#10 Опубликовано: 16.02.2018 15:59:40
Ruben Sidranski

Ruben Sidranski

17 сообщений из 463 понравились пользователям.

Группа: User

WOW ... just WOW!
Multiple realeases back to back AND one of my feature requests . Thank you!
Wrote

Break is supported for "+", "-" and "*" when it is possible to break equation where user wants.
In my point of view implemented approach is very convenient to use. This is implemented for cases when equation is larger then a paper size, so this is the only elegant way to show large equations. I'm still working on this feature, so I expect some improvements will be added soon.


Sounds like this will automatically re-size? From the screenshot in the 6119 build, it looks like it's tied to the math region box (genius). Downloading BETA

#11 Опубликовано: 16.02.2018 23:13:05
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

WOW ... just WOW!


OK, give an example of your WOWWOW
Does not correlate my previous Useless [or almost useless].
please, attach your demo WOWWoW


#12 Опубликовано: 27.02.2018 18:34:13
Ruben Sidranski

Ruben Sidranski

17 сообщений из 463 понравились пользователям.

Группа: User

Don't have to. Many times, the variable names are long to help define "what" it is. Instead of using "R sub one", I can now "print" equations where it's "R sub insfoam" + "R sub drywall"
Makes it easier for the checker to follow. Trust me, I sometimes get lost in your sheets
1 пользователям понравился этот пост
Jason McCool 08.10.2021 14:02:00
#13 Опубликовано: 13.04.2021 12:37:45
MBe

MBe

2 сообщений из 21 понравились пользователям.

Группа: User

Hello everybody,
sometimes the definition of a function requires multiple arguments and if you want them to be "self-explaining" (at least to a certain level) you have to use meaningful names for those. All these conditions might bring to a long line before you can type ":" and start with a definition line.
At this point, the space on the paper for statements along the function definition might become a bit tight and the definition itself might be not printable(anything falling out of paper limit will be cutout in printing).

Any chance to have a split at ":=" in order to have the function definition beginning at the left margin of paper?
Something like:

MyVeryLongFunction(OneNiceArgument, ASecondOne, ThisIsThird, Etc, Etc2, AnotherOne):=
|A:= OneNiceArgument + Etc2
|B:= ThisIsThird * AnotherOne
|Calculation:= .....
|ToBeContinued...
|....

Thanks for any help on this subject

Marco
#14 Опубликовано: 13.04.2021 16:21:43
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: Super Administrator

Hello Marco.

Wrote

Any chance to have a split at ":=" in order to have the function definition beginning at the left margin of paper?
Something like:

MyVeryLongFunction(OneNiceArgument, ASecondOne, ThisIsThird, Etc, Etc2, AnotherOne):=
|A:= OneNiceArgument + Etc2
|B:= ThisIsThird * AnotherOne
|Calculation:= .....
|ToBeContinued...
|....


Yes, it is possible. After you have finished composing formula for definition just put the cursor before := and press Ctrl+Enter. This will produce something like
def_linebreak1.jpg

Best regards.
1 пользователям понравился этот пост
MBe 14.04.2021 05:17:00
#15 Опубликовано: 14.04.2021 05:19:07
MBe

MBe

2 сообщений из 21 понравились пользователям.

Группа: User

Thanks to everybody for the prompt answers.

Marco
#16 Опубликовано: 14.04.2021 09:01:35
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Thanks to everybody for the prompt answers.
Marco


Visit this manageable example SS 6179
Take care Marco ... Jean

Marco [Jean].sm (24 КиБ) скачан 129 раз(а).

#17 Опубликовано: 16.04.2021 13:09:28
MBe

MBe

2 сообщений из 21 понравились пользователям.

Группа: User

Very interesting Jean, thank you.

Marco
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений