aesthete-team team mailing list archive
-
aesthete-team team
-
Mailing list archive
-
Message #00017
Trigonometric Definitions
Hi all,
Please find attached a patch which adds the basic trigonometric
functions sin, cos, and tan to the Glypher toolbox, along with 𝛑 as a
constant.
Comments welcome,
Chris.
=== added file 'defs/cos.xml'
--- defs/cos.xml 1970-01-01 00:00:00 +0000
+++ defs/cos.xml 2011-10-27 02:57:12 +0000
@@ -0,0 +1,8 @@
+<cos type="special_function" name="cos" auto_bracket="True" title="cos(ð)" mathml='cos'>
+ <info>Cosine of an angle</info>
+ <wiki>Cosine</wiki>
+ <latex>"\cos "+self["args"].to_latex()</latex>
+ <sympy>cos(*args)</sympy>
+ <symbol>cos(ð)</symbol>
+ <category>Trigonometry</category>
+</cos>
=== added file 'defs/pi.xml'
--- defs/pi.xml 1970-01-01 00:00:00 +0000
+++ defs/pi.xml 2011-10-27 02:59:40 +0000
@@ -0,0 +1,8 @@
+<pi type="constant" name="pi" auto_bracket="False" title="pi" mathml='pi'>
+ <info>Pi</info>
+ <wiki>Pi</wiki>
+ <latex>"\pi"</latex>
+ <sympy>pi</sympy>
+ <symbol>ð</symbol>
+ <category>Constants</category>
+</pi>
=== added file 'defs/sin.xml'
--- defs/sin.xml 1970-01-01 00:00:00 +0000
+++ defs/sin.xml 2011-10-27 02:57:27 +0000
@@ -0,0 +1,8 @@
+<sin type="special_function" name="sin" auto_bracket="True" title="sin(ð)" mathml='sin'>
+ <info>Sine of an angle</info>
+ <wiki>Sine</wiki>
+ <latex>"\sin "+self["args"].to_latex()</latex>
+ <sympy>sin(*args)</sympy>
+ <symbol>sin(ð)</symbol>
+ <category>Trigonometry</category>
+</sin>
=== added file 'defs/tan.xml'
--- defs/tan.xml 1970-01-01 00:00:00 +0000
+++ defs/tan.xml 2011-10-27 02:59:08 +0000
@@ -0,0 +1,8 @@
+<tan type="special_function" name="tan" auto_bracket="True" title="tan(ð)" mathml='tan'>
+ <info>Tangent of an angle</info>
+ <wiki>Trigonometric Functions</wiki>
+ <latex>"\tan "+self["args"].to_latex()</latex>
+ <sympy>tan(*args)</sympy>
+ <symbol>tan(ð)</symbol>
+ <category>Trigonometry</category>
+</tan>
Follow ups