[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

Author Message
jusic
Newbie

Joined: 18 Sep 2004
Posts: 2

Posted: Sat Sep 18, 2004 4:08 am    Post subject: How to write the derivative of a function

How do you write this correctly in the formula editor?
 Code: f'(x)

In LaTeX that would be something like:
 Code: f^{\prime}(x)

But in OOo \prime or %prime doesn't work, and IMO f '(x) doesn't look right. I searched the forum for "derivative" but I found nothing appropriate.
RGB
Super User

Joined: 25 Nov 2003
Posts: 1743
Location: In Lombardy, near a glass of red Tuscany wine

Posted: Mon Sep 20, 2004 3:59 am    Post subject:

Horizontal spacing in math is not pretty. Try this "hack":
 Code: f^{size*2{,}}(x)

looks slightly better than f'(x)...
jusic
Newbie

Joined: 18 Sep 2004
Posts: 2

Posted: Mon Sep 20, 2004 6:48 am    Post subject: Horizontal spacing ok, now problem is vertical spacing

Thanks for the tip. But if you write e.g.:
 Code: {1} over {f^{size*2{,}}(x)}

Horizontal spacing is quite ok, but 2x sized comma messes up the vertical spacing

Any suggestions to this?
RGB
Super User

Joined: 25 Nov 2003
Posts: 1743
Location: In Lombardy, near a glass of red Tuscany wine

Posted: Mon Sep 20, 2004 7:07 am    Post subject: Re: Horizontal spacing ok, now problem is vertical spacing

 jusic wrote: Horizontal spacing is quite ok, but 2x sized comma messes up the vertical spacing

Oops! You are right...
less beautifull, but still better than f'(x):
 Code: f"'"(x)

That is: a " followed by a ' and followed by a ", without spaces This made de ' became "non italiced", with a better spacing as result.
manu
Newbie

Joined: 22 Nov 2004
Posts: 1

 Posted: Mon Nov 22, 2004 7:35 am    Post subject: Prime trouble Hi there Am using Math since a few months and could get round most problems with formulas after playing or googling around. There is only that prime for which I haven't found a sufficient solution. The hacks described above are ok as long as you do not deal with indexes. In case the primed function has an index either prime or index are too far away from the symbol. Work around is to superscript a double sized , but this doesn't work if the derivative is in the index itself. To my opinion, the prime should be a Math comand as is e.g. tilde hat bar ... Is there any way to suggest this to the developers? Guess the modification needed is rather small. Regards Manuel
David
Super User

Joined: 24 Oct 2003
Posts: 5668

Posted: Mon Nov 29, 2004 6:23 am    Post subject: Re: How to write the derivative of a function

jusic wrote:
How do you write this correctly in the formula editor?
 Code: f'(x)

In LaTeX that would be something like:
 Code: f^{\prime}(x)

But in OOo \prime or %prime doesn't work, and IMO f '(x) doesn't look right. I searched the forum for "derivative" but I found nothing appropriate.

OK, I 'm admittedly not familiar with the math editor since it reminds me of the thrashing around I did prior to using more advanced algebraic GUI systems. However, I do know that it is sometimes advantageous to combine both ordinary text and the resulting Math graphic insert. That is, can you not type f'(x) = Then go to the math editor to complete the statement, which will then be inserted as a graphic that can be moved to line up if not already there? I know I've done something similar in other word processors.

David.
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
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