diff options
author | Karl Berry <karl@freefriends.org> | 2012-07-23 17:28:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-07-23 17:28:43 +0000 |
commit | ecfa5f36d1f895ffa3ccbd7b65ea54cffdbb518d (patch) | |
tree | 62cf630022b3ee00d312269aad45e027dd49b244 /Master/texmf-dist/doc/latex/calculator | |
parent | ab7ba4c57fac580b3ce38b9a3785b71d104ed92a (diff) |
new latex package calculator (11jun12)
git-svn-id: svn://tug.org/texlive/trunk@27112 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/calculator')
59 files changed, 547 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/calculator/README b/Master/texmf-dist/doc/latex/calculator/README new file mode 100644 index 00000000000..a117269067e --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/README @@ -0,0 +1,133 @@ + +The calculator and calculus packages: Use \LaTeX as a scientific calculator. + +Robert Fuster, 2012 + + +1. Licence +---------- +This material is subject to the LaTeX Project Public License. + +See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html +for the details of that license. + + +2. About the packages +--------------------- + +The calculator and calculus packages define several instructions which allow us +to realize algebraic operations and to evaluate elementary functions and derivatives +in our documents. + +My main goal is to define the arithmetic and functional claculations I need in my +package "xpicture" (http://www.upv.es/~rfuster/xpicture), but the numeric abilities +of "calculator" and "calculus" may be useful in other contexts. + +2.1 The calculator package +-------------------------- + +The operations implemented by the calculator package include +- arithmetical calculations with real and integer numbers +- two and three dimensional vectors and matrices arithmetics +- computation of powers, square roots, trigonometrical, exponential, logarithmic and + hyperbolic functions. + +In addition, some important numbers, such as pi, sqrt(2) or e, are predefined. + +Some simple examples: + +a) Simplify a fraction: if you type + + \FRACTIONSIMPLIFY{252}{2220}{\num}{\den} + + Then, $\num/\den$ equals to 21/186 + +b) Compute elementary functions: + + \LOG{2}{\sol} ---> \sol equals 0.69315 + + \LOG[10]{2}{\sol} ---> \sol equals 0.30103 + + \SIN{\numberHALFPI}{\sol} ---> \sol equals 1 + +c) More complex calculations: + You can compute the value of sqrt(7.25)cos(pi/7) by typing + + \SQRT{7.25}{\tempa} + \DIVIDE{\numberPI}{7}{\tempb} + \COS{\tempb}{\tempc} + \MULTIPLY{\tempa}{\tempa}{\sol} + + Then, the value 2.42589 is stored in \sol. + +d) Vectors and matrices: + + \SCALARPRODUCT(1,2)(2,1){\sol} ---> \sol equals 4 + + \MATRIXPRODUCT(1,1;-1,2)(0,-1;1,1)(\sola,\solb;\solc,\sold) + ---> \sola, \solb, \solc, \sold equals 1, 0, 2, 3. + + +2.2. The calculus package +------------------------- + +This package adds to the calculator package several utilities to use and define +real functions and their derivatives, including elementary functions, +operations with functions, vector-valuated functions polar coordinates. +When you call a "function", this function ant its derivative are evaluated simultaneously. + +Examples: + +a) Predefined functions: + + \SINfunction{\numberPI}{\sol}{\Dsol} ---> + \sol equals to 0 (=sin(pi)), and \Dsol equals -1 (=cos(pi)), + because cos(t) is the derivative of sin(t). + +b) Defining new functions: You can define the function f(t)=exp(2t)cos(t)-t +with the following code: + + \SCALEVARIABLEfunction{2}{\EXPfunction}{\functionA} % A=e^(2t) + \MULTIPLY{\functionA}{\COSfunction}{\functionB} % b=e^(2t)cos(t) + \SUBTRACTfunction{\functionB}{\IDENTITYfunction}{\functionF} % My function + +Then, \functionF{num}{\sol}{\Dsol} stores f(num) and f'(num) in \sol and \Dsol. + + +3. Installation and documentation +--------------------------------- + +By compiling the source file "calculator.dtx" in the following sequence + +>> pdflatex calculator.dtx +>> makeindex -s gind.ist -o calculator.ind calculator.idx +>> makeindex -s gglo.ist -o calculator.gls calculator.glo +>> pdflatex calculator.dtx + +several files will be generated: + + "calculator.sty" and "calculus.sty" (the packages). + Move these two files where LaTeX search for (typically, in a local texmf tree, + at tex/latex/calculator) and refresh the file database. + + "calculator.pdf" (the user manual) + +In addition, many small files, named "calculatorNN.tex" are generated. +These files contain the source code of all examples included in the manual. +You can store or discard this files. + +--------------------------------------------------- +Robert Fuster +rfuster@mat.upv.es + +Universitat Polit\`ecnica de Val\`encia, 2012/05/19 +--------------------------------------------------- + + + + + + + + + diff --git a/Master/texmf-dist/doc/latex/calculator/calculator.pdf b/Master/texmf-dist/doc/latex/calculator/calculator.pdf Binary files differnew file mode 100644 index 00000000000..51d5fdc7f21 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator.pdf diff --git a/Master/texmf-dist/doc/latex/calculator/calculator1.tex b/Master/texmf-dist/doc/latex/calculator/calculator1.tex new file mode 100644 index 00000000000..384de7ddb83 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator1.tex @@ -0,0 +1,16 @@ +% \tempA=2,5^2 + \SQUARE{2.5}{\tempA} +% \tempB=sqrt(12) + \SQUAREROOT{12}{\tempB} +% \tempC=exp(3,4) + \EXP{3.4}{\tempC} +% \divisio=\tempA/tempB + \DIVIDE{\tempA}{\tempB}{\divisio} +% \sol=\divisio+\tempC + \ADD{\divisio}{\tempC}{\sol} +\begin{align*} +\frac{2.5^2}{\sqrt{12}}+\mathrm{e}^{3.4} + &= \frac{\tempA}{\tempB}+\tempC \\ + &= \divisio+\tempC \\ + &=\sol +\end{align*} diff --git a/Master/texmf-dist/doc/latex/calculator/calculator10.tex b/Master/texmf-dist/doc/latex/calculator/calculator10.tex new file mode 100644 index 00000000000..9f94dd02ada --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator10.tex @@ -0,0 +1,2 @@ +\LENGTHDIVIDE{1in}{1cm}{\sol} +One inch equals $\sol$ centimeters. diff --git a/Master/texmf-dist/doc/latex/calculator/calculator11.tex b/Master/texmf-dist/doc/latex/calculator/calculator11.tex new file mode 100644 index 00000000000..6864af9ad58 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator11.tex @@ -0,0 +1,2 @@ +\SQUARE{-1.256}{\sol} +$(-1.256)^2=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator12.tex b/Master/texmf-dist/doc/latex/calculator/calculator12.tex new file mode 100644 index 00000000000..2092630e261 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator12.tex @@ -0,0 +1,2 @@ +\CUBE{-1.256}{\sol} +$(-1.256)^3=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator13.tex b/Master/texmf-dist/doc/latex/calculator/calculator13.tex new file mode 100644 index 00000000000..b66337da47e --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator13.tex @@ -0,0 +1,12 @@ +\POWER{-1.256}{-5}{\sola} +\POWER{-1.256}{5}{\solb} +\POWER{-1.256}{0}{\solc} +\[ +\begin{aligned} +(-1.256)^{-5}&=\sola +\\ +(-1.256)^{5}&=\solb +\\ +(-1.256)^{0}&=\solc +\end{aligned} +\] diff --git a/Master/texmf-dist/doc/latex/calculator/calculator14.tex b/Master/texmf-dist/doc/latex/calculator/calculator14.tex new file mode 100644 index 00000000000..cc98a935aec --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator14.tex @@ -0,0 +1,2 @@ +\ABSVALUE{-1.256}{\sol} +$\left\vert-1.256\right\vert=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator15.tex b/Master/texmf-dist/doc/latex/calculator/calculator15.tex new file mode 100644 index 00000000000..45ebda7c91f --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator15.tex @@ -0,0 +1,4 @@ +\INTEGERPART{1.256}{\sola} +\INTEGERPART{-1.256}{\solb} +The integer part of $1.256$ is $\sola$, +but the integer part of $-1.256$ is $\solb$. diff --git a/Master/texmf-dist/doc/latex/calculator/calculator16.tex b/Master/texmf-dist/doc/latex/calculator/calculator16.tex new file mode 100644 index 00000000000..56fad96daba --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator16.tex @@ -0,0 +1,2 @@ +\FLOOR{1.256}{\sol} +The integer part of $1.256$ is $\sol$. diff --git a/Master/texmf-dist/doc/latex/calculator/calculator17.tex b/Master/texmf-dist/doc/latex/calculator/calculator17.tex new file mode 100644 index 00000000000..01050f4b105 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator17.tex @@ -0,0 +1,5 @@ +\FRACTIONALPART{1.256}{\sol} +\sol + +\FRACTIONALPART{-1.256}{\sol} +\sol diff --git a/Master/texmf-dist/doc/latex/calculator/calculator18.tex b/Master/texmf-dist/doc/latex/calculator/calculator18.tex new file mode 100644 index 00000000000..5b003431148 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator18.tex @@ -0,0 +1,8 @@ +\TRUNCATE[0]{1.25688}{\sol} +\sol + +\TRUNCATE[2]{1.25688}{\sol} +\sol + +\TRUNCATE[4]{1.25688}{\sol} +\sol diff --git a/Master/texmf-dist/doc/latex/calculator/calculator19.tex b/Master/texmf-dist/doc/latex/calculator/calculator19.tex new file mode 100644 index 00000000000..d6d05c21da2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator19.tex @@ -0,0 +1,8 @@ +\ROUND[0]{1.25688}{\sol} +\sol + +\ROUND[2]{1.25688}{\sol} +\sol + +\ROUND[4]{1.25688}{\sol} +\sol diff --git a/Master/texmf-dist/doc/latex/calculator/calculator2.tex b/Master/texmf-dist/doc/latex/calculator/calculator2.tex new file mode 100644 index 00000000000..6136ee24cdf --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator2.tex @@ -0,0 +1,14 @@ +\SQUARE{5}\sol +The \texttt{\textbackslash sol} +command contains the square of $5$: +\[5^2=\sol\] +\begin{center} +\SQUAREROOT{5}\sol +Now, the \texttt{\textbackslash sol} +command is the square root of $5$: +\[\sqrt{5}=\sol\] +\end{center} +On having gone out of the \texttt{center} +environment, +the command recovers its previous value: +\sol diff --git a/Master/texmf-dist/doc/latex/calculator/calculator20.tex b/Master/texmf-dist/doc/latex/calculator/calculator20.tex new file mode 100644 index 00000000000..c3edaec1594 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator20.tex @@ -0,0 +1,14 @@ +\INTEGERDIVISION{435}{27}{\sola}{\solb} +$435=27\times\sola+\solb$ + +\INTEGERDIVISION{27}{435}{\sola}{\solb} +$27=435\times\sola+\solb$ + +\INTEGERDIVISION{-435}{27}{\sola}{\solb} +$-435=27\times(\sola)+\solb$ + +\INTEGERDIVISION{435}{-27}{\sola}{\solb} +$435=-27\times(\sola)+\solb$ + +\INTEGERDIVISION{-435}{-27}{\sola}{\solb} +$-435=-27\times\sola+\solb$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator21.tex b/Master/texmf-dist/doc/latex/calculator/calculator21.tex new file mode 100644 index 00000000000..015b06455a3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator21.tex @@ -0,0 +1,8 @@ +\INTEGERQUOTIENT{435}{27}{\sol} +\sol + +\INTEGERQUOTIENT{27}{435}{\sol} +\sol + +\INTEGERQUOTIENT{-43.5}{2.7}{\sol} +\sol diff --git a/Master/texmf-dist/doc/latex/calculator/calculator22.tex b/Master/texmf-dist/doc/latex/calculator/calculator22.tex new file mode 100644 index 00000000000..cbbc842b31c --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator22.tex @@ -0,0 +1,8 @@ +\MODULO{435}{27}{\sol} +\[ +435 \equiv \sol \pmod{27} +\] +\MODULO{-435}{27}{\sol} +\[ +-435 \equiv \sol \pmod{27} +\] diff --git a/Master/texmf-dist/doc/latex/calculator/calculator23.tex b/Master/texmf-dist/doc/latex/calculator/calculator23.tex new file mode 100644 index 00000000000..b2175182b9d --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator23.tex @@ -0,0 +1,2 @@ +\GCD{435}{27}{\sol} +$\gcd(435,27)=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator24.tex b/Master/texmf-dist/doc/latex/calculator/calculator24.tex new file mode 100644 index 00000000000..685027f4f98 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator24.tex @@ -0,0 +1,3 @@ +\newcommand{\lcm}{\operatorname{lcm}} +\LCM{435}{27}{\sol} +$\lcm(435,27)=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator25.tex b/Master/texmf-dist/doc/latex/calculator/calculator25.tex new file mode 100644 index 00000000000..ed5a5bb26f1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator25.tex @@ -0,0 +1,2 @@ +\FRACTIONSIMPLIFY{435}{27}{\sola}{\solb} +$435/27=\sola/\solb$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator26.tex b/Master/texmf-dist/doc/latex/calculator/calculator26.tex new file mode 100644 index 00000000000..6df41c19e8a --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator26.tex @@ -0,0 +1,2 @@ +\SQUAREROOT{1.44}{\sol} +$\sqrt{1.44}=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator27.tex b/Master/texmf-dist/doc/latex/calculator/calculator27.tex new file mode 100644 index 00000000000..41fd8b4ed82 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator27.tex @@ -0,0 +1,2 @@ +\EXP{0.5}{\sol} +$\exp(0.5)=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator28.tex b/Master/texmf-dist/doc/latex/calculator/calculator28.tex new file mode 100644 index 00000000000..0a8af280fa0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator28.tex @@ -0,0 +1,6 @@ +\EXP[10]{1.3}{\sol} +$10^{1.3}=\sol$ + +\EXP[2]{0.33333}{\sol} +$2^{1/3}=\sol$ + diff --git a/Master/texmf-dist/doc/latex/calculator/calculator29.tex b/Master/texmf-dist/doc/latex/calculator/calculator29.tex new file mode 100644 index 00000000000..82bf398f848 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator29.tex @@ -0,0 +1,2 @@ +\LOG{0.5}{\sol} +$\log 0.5=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator3.tex b/Master/texmf-dist/doc/latex/calculator/calculator3.tex new file mode 100644 index 00000000000..11f7296ffe2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator3.tex @@ -0,0 +1,2 @@ +\COPY{-1.256}{\sol} +\sol diff --git a/Master/texmf-dist/doc/latex/calculator/calculator30.tex b/Master/texmf-dist/doc/latex/calculator/calculator30.tex new file mode 100644 index 00000000000..ed2bf1e00c5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator30.tex @@ -0,0 +1,2 @@ +\LOG[10]{0.5}{\sol} +$\log_{10} 0.5=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator31.tex b/Master/texmf-dist/doc/latex/calculator/calculator31.tex new file mode 100644 index 00000000000..e41832e74ce --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator31.tex @@ -0,0 +1,11 @@ +\SIN{\numberTHIRDPI}{\sol} +$\sin \pi/3=\sol$ + +\COS{\numberTHIRDPI}{\sol} +$\cos \pi/3=\sol$ + +\TAN{\numberTHIRDPI}{\sol} +$\tan \pi/3=\sol$ + +\COT{\numberTHIRDPI}{\sol} +$\cot \pi/3=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator32.tex b/Master/texmf-dist/doc/latex/calculator/calculator32.tex new file mode 100644 index 00000000000..cc5a388a759 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator32.tex @@ -0,0 +1,11 @@ +\DEGREESSIN{60}{\sol} +$\sin 60^{\textrm o}=\sol$ + +\DEGREESCOS{60}{\sol} +$\cos 60^{\textrm o}=\sol$ + +\DEGREESTAN{60}{\sol} +$\tan 60^{\textrm o}=\sol$ + +\DEGREESCOT{60}{\sol} +$\cot 60^{\textrm o}=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator33.tex b/Master/texmf-dist/doc/latex/calculator/calculator33.tex new file mode 100644 index 00000000000..9956ce25951 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator33.tex @@ -0,0 +1,11 @@ +\DEGREESCOS[400]{50}{\sol} +\sol + +\DEGREESCOS{45}{\sol} +\sol + +\COS{\numberQUARTERPI}{\sol} +\sol + +\DEGREESCOS[8]{1}{\sol} +\sol diff --git a/Master/texmf-dist/doc/latex/calculator/calculator34.tex b/Master/texmf-dist/doc/latex/calculator/calculator34.tex new file mode 100644 index 00000000000..dc73dd1a40d --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator34.tex @@ -0,0 +1,2 @@ +\DEGtoRAD{60}{\sol} +\sol diff --git a/Master/texmf-dist/doc/latex/calculator/calculator35.tex b/Master/texmf-dist/doc/latex/calculator/calculator35.tex new file mode 100644 index 00000000000..3125997f51a --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator35.tex @@ -0,0 +1,7 @@ +\MULTIPLY{\numberTWOPI}{10}{\TWENTYPI} +\ADD{\numberPI}{\TWENTYPI}{\TWENTYONEPI} +\REDUCERADIANSANGLE{\TWENTYONEPI}{\sol} +\sol + +\REDUCEDEGREESANGLE{3690}{\sol} +\sol diff --git a/Master/texmf-dist/doc/latex/calculator/calculator36.tex b/Master/texmf-dist/doc/latex/calculator/calculator36.tex new file mode 100644 index 00000000000..cdd27aa2427 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator36.tex @@ -0,0 +1,11 @@ +\SINH{1.256}{\sol} +\sol + +\COSH{1.256}{\sol} +\sol + +\TANH{1.256}{\sol} +\sol + +\COTH{1.256}{\sol} +\sol diff --git a/Master/texmf-dist/doc/latex/calculator/calculator37.tex b/Master/texmf-dist/doc/latex/calculator/calculator37.tex new file mode 100644 index 00000000000..848ea112443 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator37.tex @@ -0,0 +1,5 @@ +\VECTORCOPY(1,-1)(\sola,\solb) +$(\sola,\solb)$ + +\VECTORCOPY(1,-1,2)(\sola,\solb,\solc) +$(\sola,\solb,\solc)$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator38.tex b/Master/texmf-dist/doc/latex/calculator/calculator38.tex new file mode 100644 index 00000000000..e7d761a1306 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator38.tex @@ -0,0 +1,5 @@ +\VECTORADD(1,-1,2)(3,5,-1)(\sola,\solb,\solc) +$(1,-1,2)+(3,5,-1)=(\sola,\solb,\solc)$ + +\VECTORSUB(1,-1,2)(3,5,-1)(\sola,\solb,\solc) +$(1,-1,2)-(3,5,-1)=(\sola,\solb,\solc)$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator39.tex b/Master/texmf-dist/doc/latex/calculator/calculator39.tex new file mode 100644 index 00000000000..9af0c8329a1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator39.tex @@ -0,0 +1,6 @@ +\SCALARVECTORPRODUCT{2}(3,5)(\sola,\solb) +$2(3,5)=(\sola,\solb)$ + +\SCALARVECTORPRODUCT{2}(3,5,-1)(% + \sola,\solb,\solc) +$2(3,5,-1)=(\sola,\solb,\solc)$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator4.tex b/Master/texmf-dist/doc/latex/calculator/calculator4.tex new file mode 100644 index 00000000000..123ab06a45a --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator4.tex @@ -0,0 +1,2 @@ +\MAX{1.256}{3.214}{\sol} +\[\max(1.256,3.214)=\sol\] diff --git a/Master/texmf-dist/doc/latex/calculator/calculator40.tex b/Master/texmf-dist/doc/latex/calculator/calculator40.tex new file mode 100644 index 00000000000..4ab16f69418 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator40.tex @@ -0,0 +1,11 @@ +\SCALARPRODUCT(1,-1)(3,5){\sol} +$(1,-1)\cdot(3,5)=\sol$ + +\SCALARPRODUCT(1,-1,2)(3,5,-1){\sol} +$(1,-1,2)\cdot(3,5,-1)=\sol$ + +\VECTORNORM(3,4)\sol +$\left\|(3,4)\right\|=\sol$ + +\VECTORNORM(1,2,-2)\sol +$\left\|(1,2,-2)\right\|=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator41.tex b/Master/texmf-dist/doc/latex/calculator/calculator41.tex new file mode 100644 index 00000000000..045880987a1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator41.tex @@ -0,0 +1,5 @@ +\UNITVECTOR(3,4)(\sola,\solb) +$(\sola,\solb)$ + +\UNITVECTOR(1,2,-2)(\sola,\solb,\solc) +$(\sola,\solb,\solc)$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator42.tex b/Master/texmf-dist/doc/latex/calculator/calculator42.tex new file mode 100644 index 00000000000..c4df209d4ad --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator42.tex @@ -0,0 +1,5 @@ +\VECTORABSVALUE(3,-4)(\sola,\solb) +$(\sola,\solb)$ + +\VECTORABSVALUE(3,-4,-1)(\sola,\solb,\solc) +$(\sola,\solb,\solc)$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator43.tex b/Master/texmf-dist/doc/latex/calculator/calculator43.tex new file mode 100644 index 00000000000..a0dd9f85cc5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator43.tex @@ -0,0 +1,11 @@ +\MATRIXCOPY(1, -1, 2; + 3, 0, 5; + -1, 1, 4)% + (\sola,\solb,\solc; + \sold,\sole,\solf; + \solg,\solh,\soli) +$\begin{bmatrix} + \sola & \solb & \solc \\ + \sold & \sole & \solf \\ + \solg & \solh & \soli + \end{bmatrix}$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator44.tex b/Master/texmf-dist/doc/latex/calculator/calculator44.tex new file mode 100644 index 00000000000..5ee6b5cfa5d --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator44.tex @@ -0,0 +1,7 @@ +\TRANSPOSEMATRIX(1,-1;3,0)% + (\sola,\solb;\solc,\sold) +$\begin{bmatrix} + 1 & -1 \\ 3 & 0 + \end{bmatrix}^T=\begin{bmatrix} + \sola & \solb \\ \solc & \sold + \end{bmatrix}$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator45.tex b/Master/texmf-dist/doc/latex/calculator/calculator45.tex new file mode 100644 index 00000000000..c1ed8fc0ac3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator45.tex @@ -0,0 +1,21 @@ +\MATRIXADD(1,-1;3,0)(3,5;-3,2)% + (\sola,\solb;\solc,\sold) +$\begin{bmatrix} + 1 & -1 \\ 3 & 0 + \end{bmatrix}+ +\begin{bmatrix} + 3 & 5 \\ -3 & 2 + \end{bmatrix}=\begin{bmatrix} + \sola & \solb \\ \solc & \sold + \end{bmatrix}$ + +\MATRIXSUB(1,-1;3,0)(3,5;-3,2)% + (\sola,\solb;\solc,\sold) +$\begin{bmatrix} + 1 & -1 \\ 3 & 0 + \end{bmatrix}- +\begin{bmatrix} + 3 & 5 \\ -3 & 2 + \end{bmatrix}=\begin{bmatrix} + \sola & \solb \\ \solc & \sold + \end{bmatrix}$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator46.tex b/Master/texmf-dist/doc/latex/calculator/calculator46.tex new file mode 100644 index 00000000000..c5cf74d4753 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator46.tex @@ -0,0 +1,14 @@ +\SCALARMATRIXPRODUCT{3}(1,-1,2; + 3, 0,5; + -1, 1,4)% + (\sola,\solb,\solc; + \sold,\sole,\solf; + \solg,\solh,\soli) +$3\begin{bmatrix} + 1 & -1 & 2 \\ 3 & 0 & 5 \\ -1 & 1 & 4 + \end{bmatrix} + =\begin{bmatrix} + \sola & \solb & \solc \\ + \sold & \sole & \solf \\ + \solg & \solh & \soli + \end{bmatrix}$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator47.tex b/Master/texmf-dist/doc/latex/calculator/calculator47.tex new file mode 100644 index 00000000000..6abe4e7a0b6 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator47.tex @@ -0,0 +1,11 @@ +\MATRIXVECTORPRODUCT(1,-1; + 0, 2)(3,5)(\sola,\solb) +$\begin{bmatrix} + 1 & -1 \\ 0 & 2 + \end{bmatrix} + \begin{bmatrix} + 3 \\ 5 + \end{bmatrix} + =\begin{bmatrix} + \sola \\ \solb + \end{bmatrix}$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator48.tex b/Master/texmf-dist/doc/latex/calculator/calculator48.tex new file mode 100644 index 00000000000..c8e2cbeaba1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator48.tex @@ -0,0 +1,18 @@ +\MATRIXPRODUCT(1,-1,2;3,0,5;-1,1,4)% + (3,5,-1;-3,2,-5;1,-2,3)% + (\sola,\solb,\solc; + \sold,\sole,\solf; + \solg,\solh,\soli) +\begin{multline*} +\begin{bmatrix} + 1 & -1 & 2 \\ 3 & 0 & 5 \\ -1 & 1 & 4 + \end{bmatrix} +\begin{bmatrix} + 3 & 5 & -1 \\ -3 & 2 & -5 \\ 1 & -2 & 3 + \end{bmatrix}\\ +=\begin{bmatrix} + \sola & \solb & \solc \\ + \sold & \sole & \solf \\ + \solg & \solh & \soli +\end{bmatrix} +\end{multline*} diff --git a/Master/texmf-dist/doc/latex/calculator/calculator49.tex b/Master/texmf-dist/doc/latex/calculator/calculator49.tex new file mode 100644 index 00000000000..16c0b0a8c8b --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator49.tex @@ -0,0 +1,5 @@ +\DETERMINANT(1,-1,2;3,0,5;-1,1,4){\sol} +\SpecialUsageIndex{\DETERMINANT}% +$\begin{vmatrix} + 1 & -1 & 2 \\ 3 & 0 & 5 \\ -1 & 1 & 4 + \end{vmatrix}=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator5.tex b/Master/texmf-dist/doc/latex/calculator/calculator5.tex new file mode 100644 index 00000000000..0f410c70277 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator5.tex @@ -0,0 +1,2 @@ +\MIN{1.256}{3.214}{\sol} +\sol diff --git a/Master/texmf-dist/doc/latex/calculator/calculator50.tex b/Master/texmf-dist/doc/latex/calculator/calculator50.tex new file mode 100644 index 00000000000..7ad03915b39 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator50.tex @@ -0,0 +1,8 @@ +\INVERSEMATRIX(1,-1;3,5)(% + \sola,\solb;\solc,\sold) +$\begin{bmatrix} + 1 & -1 \\ 3 & 5 + \end{bmatrix}^{-1}= + \begin{bmatrix} + \sola & \solb \\ \solc & \sold + \end{bmatrix}$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator51.tex b/Master/texmf-dist/doc/latex/calculator/calculator51.tex new file mode 100644 index 00000000000..bd69eaf743b --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator51.tex @@ -0,0 +1,9 @@ +\MATRIXABSVALUE(1,-1,2;3,0,5;-1,1,4)% + (\sola,\solb,\solc; + \sold,\sole,\solf; + \solg,\solh,\soli) +$\begin{bmatrix} + \sola & \solb & \solc \\ + \sold & \sole & \solf \\ + \solg & \solh & \soli + \end{bmatrix}$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator52.tex b/Master/texmf-dist/doc/latex/calculator/calculator52.tex new file mode 100644 index 00000000000..1ad53821cf8 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator52.tex @@ -0,0 +1,15 @@ +\SOLVELINEARSYSTEM(1,-1,2;3,0,5;-1,1,4)% + (-4,4,-2)% + (\sola,\solb,\solc) +Solving the linear system +\[ +\begin{bmatrix} + 1 & -1 & 2 \\ 3 & 0 & 5 \\ -1 & 1 & 4 + \end{bmatrix}\mathsf{X}=\begin{bmatrix} + -4\\4\\-2 + \end{bmatrix} +\] +we obtain +$\mathsf{X}=\begin{bmatrix} + \sola \\ \solb\\ \solc + \end{bmatrix}$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator53.tex b/Master/texmf-dist/doc/latex/calculator/calculator53.tex new file mode 100644 index 00000000000..2696c2df99c --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator53.tex @@ -0,0 +1,5 @@ +\SQUAREfunction{3}{\sol}{\Dsol} +If $f(t)=t^2$, then +\[ + f(3)=\sol \mbox{ and } f'(3)=\Dsol +\] diff --git a/Master/texmf-dist/doc/latex/calculator/calculator54.tex b/Master/texmf-dist/doc/latex/calculator/calculator54.tex new file mode 100644 index 00000000000..4a99aefa2ad --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator54.tex @@ -0,0 +1,15 @@ +$\begin{array}{cll} +x & \log x & \log' x \\ +\LOGfunction{1}{\logx}{\Dlogx} +1 &\logx & \Dlogx\\ +\LOGfunction{2}{\logx}{\Dlogx} +2 &\logx & \Dlogx\\ +\LOGfunction{3}{\logx}{\Dlogx} +3 &\logx & \Dlogx\\ +\LOGfunction{4}{\logx}{\Dlogx} +4 &\logx & \Dlogx\\ +\LOGfunction{5}{\logx}{\Dlogx} +5 &\logx & \Dlogx\\ +\LOGfunction{6}{\logx}{\Dlogx} +6 &\logx & \Dlogx +\end{array}$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator55.tex b/Master/texmf-dist/doc/latex/calculator/calculator55.tex new file mode 100644 index 00000000000..4a0ab779c75 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator55.tex @@ -0,0 +1,30 @@ +% exp(-t) + \SCALEVARIABLEfunction + {-1}{\EXPfunction} + {\NEGEXPfunction} + +% exp(-t)cos(t) + \PRODUCTfunction + {\NEGEXPfunction} + {\COSfunction} + {\NEGEXPCOSfunction} + +% 3t^2-2exp(-t)cos(t) + \LINEARCOMBINATIONfunction + {3}{\SQUAREfunction} + {-2}{\NEGEXPCOSfunction} + {\myfunction} + +\myfunction{5}{\sol}{\Dsol} + +If +\[ + f(t)=3t^2-2\mathrm{e}^{-t}\cos t +\] +then +\[ +\begin{gathered} + f(5)=\sol\\ + f'(5)=\Dsol +\end{gathered} +\] diff --git a/Master/texmf-dist/doc/latex/calculator/calculator56.tex b/Master/texmf-dist/doc/latex/calculator/calculator56.tex new file mode 100644 index 00000000000..f5c10e29574 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator56.tex @@ -0,0 +1,4 @@ +% \mypoly=1-x^2+x^3 + \newcpoly{\mypoly}{1}{0}{-1}{1} + \mypoly{2}{\sol}{\Dsol} +$p'(2)=\Dsol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator57.tex b/Master/texmf-dist/doc/latex/calculator/calculator57.tex new file mode 100644 index 00000000000..9caca3c8c7b --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator57.tex @@ -0,0 +1,9 @@ +For the $f(t)=(t^2,t^3)$ function we have +\VECTORfunction + {\SQUAREfunction}{\CUBEfunction}{\F} + +\F{4}{\solx}{\Dsolx}{\soly}{\Dsoly} + +\[ +f(4)=(\solx,\soly), f'(4)=(\Dsolx,\Dsoly) +\] diff --git a/Master/texmf-dist/doc/latex/calculator/calculator6.tex b/Master/texmf-dist/doc/latex/calculator/calculator6.tex new file mode 100644 index 00000000000..663c9a1bff9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator6.tex @@ -0,0 +1,2 @@ +\ADD{1.256}{3.214}{\sol} +$1.256+3.214=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator7.tex b/Master/texmf-dist/doc/latex/calculator/calculator7.tex new file mode 100644 index 00000000000..6f0d9c2fea7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator7.tex @@ -0,0 +1,2 @@ +\SUBTRACT{1.256}{3.214}{\sol} +$1.256-3.214=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator8.tex b/Master/texmf-dist/doc/latex/calculator/calculator8.tex new file mode 100644 index 00000000000..de60a332745 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator8.tex @@ -0,0 +1,2 @@ +\MULTIPLY{1.256}{3.214}{\sol} +$1.256\times3.214=\sol$ diff --git a/Master/texmf-dist/doc/latex/calculator/calculator9.tex b/Master/texmf-dist/doc/latex/calculator/calculator9.tex new file mode 100644 index 00000000000..f3c94758d93 --- /dev/null +++ b/Master/texmf-dist/doc/latex/calculator/calculator9.tex @@ -0,0 +1,2 @@ +\DIVIDE{1.256}{3.214}{\sol} +$1.256/3.214=\sol$ |