[Solved] Fraction for T₂ = T₁ x (P₂·V₂ over P₁·V₁)

Discuss the formula editor
Post Reply
mtnylmz
Posts: 123
Joined: Fri Jul 22, 2022 2:28 am

[Solved] Fraction for T₂ = T₁ x (P₂·V₂ over P₁·V₁)

Post by mtnylmz »

I want to enter a formula including fraction. I want to use multiplication symbol with "times". But it seems that I cannot group elements properly.
I want to make it seem as a fraction by using "over".

Here is the code I am trying: T_2=T_1 times(P_2 times V_2 over (P_1 times V_1)

It appears as following
fractions.png
fractions.png (1.02 KiB) Viewed 4033 times
But it should seem to be T2= T1 x (P2 V2 / P1V1)

Would someone help?

 Edit: Changed subject, was A fraction example 
Make your post understandable by others 
-- MrProgrammer, forum moderator 
Last edited by MrProgrammer on Sat May 20, 2023 5:38 pm, edited 6 times in total.
OppenOffice 4.1.12 on Windows 10
FJCC
Moderator
Posts: 9292
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: A fraction example

Post by FJCC »

Does this give you what you want?

Code: Select all

T_2 = T_1 times {{P_2 times V_2} over {P_1 times V_1}}
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
Hagar Delest
Moderator
Posts: 32687
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: A fraction example

Post by Hagar Delest »

Note that there is merely a missing ending bracket in your formula. Just a syntax typo.
But brackets are not very pretty, the code from FJCC is way nicer.

Please add [Solved] at the beginning of the title in your first post (top of the topic) with the 🖉 button if your issue has been fixed.
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
mtnylmz
Posts: 123
Joined: Fri Jul 22, 2022 2:28 am

Re: A fraction example

Post by mtnylmz »

Thanks it works. But is there any difference between types of paranthesis: (, {, [ ?

Do they all work in the same way? At least that example?
OppenOffice 4.1.12 on Windows 10
User avatar
Hagar Delest
Moderator
Posts: 32687
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: [Solved] Fraction for T2 = T1 x (P2V2 over P1V1)

Post by Hagar Delest »

Don't know but I'm sure the help files will gives some information. The link to the 4.1 documentation is at the top of the Math forum section.
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
FJCC
Moderator
Posts: 9292
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: [Solved] Fraction for T2 = T1 x (P2V2 over P1V1)

Post by FJCC »

There are many options for brackets in Math. Search the Math help for Brackets to see them. Bare braces are used for grouping parts of the formula and are not displayed but you can write lbrace and rbrace if you want to display braces. The attached document shows a few of the options for our formula.
Attachments
Brackets.odt
(22.65 KiB) Downloaded 228 times
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
mtnylmz
Posts: 123
Joined: Fri Jul 22, 2022 2:28 am

Re: [Solved] Fraction for T2 = T1 x (P2V2 over P1V1)

Post by mtnylmz »

This is from a very similar example.

This code works: "{(P_b V_b)}over(P_a V_a)=(T_b)over(T_a)"

When I remove { }, the code does not work. Do you have any idea?
OppenOffice 4.1.12 on Windows 10
FJCC
Moderator
Posts: 9292
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Fraction for T2 = T1 x (P2V2 over P1V1)

Post by FJCC »

I don't see any difference in the output between

Code: Select all

{(P_b V_b)}over(P_a V_a)=(T_b)over(T_a)
and

Code: Select all

(P_b V_b)over(P_a V_a)=(T_b)over(T_a)
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
Lupp
Volunteer
Posts: 3554
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Fraction for T2 = T1 x (P2V2 over P1V1)

Post by Lupp »

BTW
If you mean the well-known gas equation, which connects thermodynamic temperatures with pressures and volumes, you should write it like this:

Code: Select all

T sub 2 = T sub 1 cdot {{p sub 2 cdot V sub 2} over {p sub 1 cdot V sub 1}}
or like this (without an explicitly given operator for the ordinary multiplication):

Code: Select all

T sub 2 = T sub 1 {{p sub 2 V sub 2} over {p sub 1 V sub 1}}
By ISO standards the quantity "pressure" is denoted "p" (lower case).
In Mathematics, science and engineering the "large cross" created in Math with the reserved word times should only be used for the "outer" (non-scalar) product of matrices (or vectors) where the result again is a matrix or vector.
When in doubt, you should also prefer a clarifying (additional) pair of curly braces to a slightly shorter but possibly ambiguous notation.
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
Post Reply