-
Notifications
You must be signed in to change notification settings - Fork 21
/
calculus.cwl
82 lines (74 loc) · 2.17 KB
/
calculus.cwl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# calculus package
# https://ctan.org/pkg/calculator
#
# Created by @ppizarror
# https://github.com/ppizarror/calculator-cwl
# date: Sat 27 Apr
# --------------------------------------------
# 1. Predefined functions
# --------------------------------------------
\ZEROfunction
\IDENTITYfunction
\SQUAREfunction
\SQRTfunction
\EXPfunction
\COSfunction
\TANfunction
\COSHfunction
\TANHfunction
\HEAVISIDEfunction
\ONEfunction
\RECIPROCALfunction
\CUBEfunction
\LOGfunction
\SINfunction
\COTfunction
\SINHfunction
\COTHfunction
\ARCCOSfunction
\ARCTANfunction
\ARCOSHfunction
\ARTANHfunction
\ARCSINfunction
\ARCCOTfunction
\ARSINHfunction
\ARCOTHfunction
# --------------------------------------------
# 2. Operations with functions
# --------------------------------------------
\CONSTANTfunction{num}{Function}
\SUMfunction{function1}{function2}{Function}
\SUBTRACTfunction{function1}{function2}{Function}
\PRODUCTfunction{function1}{function2}{Function}
\QUOTIENTfunction{function1}{function2}{Function}
\COMPOSITIONfunction{function1}{function2}{Function}
\SCALEfunction{num}{function}{Function}
\SCALEVARIABLEfunction{num}{function}{Function}
\POWERfunction{function}{num}{Function}
\LINEARCOMBINATIONfunction{num1}{function1}{num2}{function2}{Function}
# --------------------------------------------
# 3. Polynomial functions
# --------------------------------------------
\newlpoly{Function}{a}{b}
\newqpoly{Function}{a}{b}{c}
\newcpoly{Function}{a}{b}{c}{d}
\renewlpoly
\renewqpoly
\renewcpoly
\ensurelpoly
\ensureqpoly
\ensurecpoly
\forcelpoly
\forceqpoly
\forcecpoly
# --------------------------------------------
# 4. Vector-valued functions
# --------------------------------------------
\PARAMETRICfunction{Xfunction}{Yfunction}{myvectorfunction}
\VECTORfunction{Xfunction}{Yfunction}{myvectorfunction}
\newvectorfunction{Function}{instructions to compute x,D,y,Dy from t}
# --------------------------------------------
# 5. Vector-valued functions in polar coordinates
# --------------------------------------------
\POLARfunction{rfunction}{Polarfunction}
\newpolarfunction{Function}{instructions to compute r,Dr from t}