| View previous topic :: View next topic |
| Author |
Message |
Tzench General User

Joined: 08 Apr 2007 Posts: 5
|
Posted: Sun Sep 21, 2008 10:28 am Post subject: Writing a long formula across several rows |
|
|
I'm writing a report where I wan't to show how I solve a mathematical problem. In order to do this I want to write several formulas equaling each other, all in all a rather long string. It will look something like:
a*b*c=x*y*z=sin(q)=2
but with more steps and more complicated expressions. This formula won't fit into one single row. If I try to break it into several formulas in different rows
a*b*c=x*y*z
=sin(q)=2
the equality-sign at the beginning of the second row will disappear. Is there a way to solve this? |
|
| Back to top |
|
 |
Ed Super User

Joined: 28 May 2003 Posts: 1040
|
Posted: Sun Sep 21, 2008 10:46 am Post subject: |
|
|
The "=" sign needs something on each side of it.
If you want to display an "=" sign without anything before it, you will need to use the invisible operator "{}". To enter the two-line formula you describe you should enter | Code: | a*b*c=x*y*z newline
{} =sin(q)=2 |
|
|
| Back to top |
|
 |
all3n Newbie

Joined: 08 Mar 2009 Posts: 1
|
Posted: Sun Mar 08, 2009 4:04 am Post subject: |
|
|
Hi, i am trying to write the following expression in two rows, because it doesn't fit in a single one:
| Code: |
dot v_2= {1} over {%sigma+1} (2 a_1 v_1 + a_2 hat r) [%sigma hat r (v_1+%sigma (a_1 v_1^2 + a_2 v_1 hat r + a_3 {hat r}^2)) - %sigma (b_1 v_1^2 + b_2 v_1 hat r + b_3 {hat r}^2) (v_1+%sigma (a_1 v_1^2 + a_2 v_1 hat r + a_3 {hat r}^2))]
|
I want to go to a newline before writing | Code: | | - %sigma (b_1 v_1^2 |
Which is a possible solution to do this?
Thanks a lot... |
|
| Back to top |
|
 |
keme Moderator


Joined: 30 Aug 2004 Posts: 2732 Location: Egersund, Norway
|
Posted: Sun Mar 08, 2009 2:57 pm Post subject: |
|
|
The newline breaks pairing for brackets, as well as for operands to binary operators, so you'll have to "invisibly" complete all pairing before the newline, then rebuild the pairs after the newline for completion. You can use left/right keywords with "none" to make invisible left/right bracketing. For an invisible operand you can use an empty group - {} - or an empty string - "".
This gives...
| Code: | dot v_2= {1} over {%sigma+1} (2 a_1 v_1 + a_2 hat r)
left [ %sigma hat r (v_1+%sigma (a_1 v_1^2 + a_2 v_1 hat r + a_3 {hat r}^2)) right none - {} newline
left none %sigma (b_1 v_1^2 + b_2 v_1 hat r + b_3 {hat r}^2) (v_1+%sigma (a_1 v_1^2 + a_2 v_1 hat r + a_3 {hat r}^2))right ] |
|
|
| Back to top |
|
 |
|