calculus 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +2 -2
- data/lib/calculus/version.rb +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
|
@@ -32,12 +32,12 @@ You can also render expression to PNG image if you have <tt>latex</tt> and <tt>d
|
|
|
32
32
|
010:0> Calculus::Expression.new("2 + 3 \\cdot x").to_png
|
|
33
33
|
"/tmp/d20110512-16457-dhxt71/f46e77a9377ed2d5a9da768496a7e1c20be51bfe.png"
|
|
34
34
|
|
|
35
|
-
{2 + 3 \cdot x}[http://files.avsej.net/
|
|
35
|
+
{2 + 3 \cdot x}[http://files.avsej.net/exp1.png]
|
|
36
36
|
|
|
37
37
|
Also you can skip parser if you need only png generation
|
|
38
38
|
011:0> Calculus::Expression.new("\\hat{f}(\\xi) = \\int_{-\\infty}^{\\infty} f(x)\\ e^{- 2\\pi i x \\xi}\\,dx", :parse => false).to_png
|
|
39
39
|
|
|
40
|
-
{\hat{f}(\xi) = \int_{-\infty}^{\infty} f(x)\ e^{- 2\pi i x \xi}\,dx}[http://files.avsej.net/
|
|
40
|
+
{\hat{f}(\xi) = \int_{-\infty}^{\infty} f(x)\ e^{- 2\pi i x \xi}\,dx}[http://files.avsej.net/exp2.png]
|
|
41
41
|
|
|
42
42
|
Don't forget to cleanup file after using.
|
|
43
43
|
|
data/lib/calculus/version.rb
CHANGED