Re: math equations in java
- From: RedGrittyBrick <RedGrittyBrick@xxxxxxxxxxxxx>
- Date: Wed, 21 May 2008 15:30:11 +0100
Jeremy Watts wrote:
is there any kind of font/typeset (sorry for the vagueness) available
in java that allows the expression of equations or algebraic
expressions?
i am meaning something like x^3 + 3x^2 - 5, where here the '3' and the
'2' indices would be raised to the top right of the 'x' symbol so as
to appear as it would be written in a math text book or whatever.
anyone know what i'm on about here :)
Unicode has some support for those symbols, particularly superscript numerals. So any "Unicode" font with appropriate coverage will do. Actually I expect almost any Latin-1 font will do for your specific expression.
new JLabel("x\u00B3 + 3x\u00b2 - 5")
See
http://unicode.org/charts/PDF/U2200.pdf
http://unicode.org/charts/PDF/U2070.pdf
http://unicode.org/charts/PDF/U0080.pdf
--
RGB
.
- Follow-Ups:
- Re: math equations in java
- From: Marcus
- Re: math equations in java
- References:
- math equations in java
- From: Jeremy Watts
- math equations in java
- Prev by Date: Re: math equations in java
- Next by Date: Designing a server for Java applet
- Previous by thread: Re: math equations in java
- Next by thread: Re: math equations in java
- Index(es):
Relevant Pages
|