OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Writing a long formula across several rows

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Math
View previous topic :: View next topic  
Author Message
Tzench
General User
General User


Joined: 08 Apr 2007
Posts: 5

PostPosted: Sun Sep 21, 2008 10:28 am    Post subject: Writing a long formula across several rows Reply with quote

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
View user's profile Send private message
Ed
Super User
Super User


Joined: 28 May 2003
Posts: 1041

PostPosted: Sun Sep 21, 2008 10:46 am    Post subject: Reply with quote

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
View user's profile Send private message
all3n
Newbie
Newbie


Joined: 08 Mar 2009
Posts: 1

PostPosted: Sun Mar 08, 2009 4:04 am    Post subject: Reply with quote

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
View user's profile Send private message
keme
Moderator
Moderator


Joined: 30 Aug 2004
Posts: 2910
Location: Egersund, Norway

PostPosted: Sun Mar 08, 2009 2:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Math All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group