Appendix
A-2: Arithmetic Calculations
Example A-2.5
Find exact and floating-point (decimal) values for each of the following:
sinπ/4, cos1, tanπ/12, sec−12/3
Note: The Maple names of the six trig functions are sin,cos,tan,cot,sec,csc. The names of the six inverse trig functions are arcsin, arccos, arctan, arccot, arcsec, and arccsc. In math mode, sin−1x, etc., would be an equivalent notation for the inverse trig functions.
Solution
Maple Solution - Interactive
Type the expression. Press Enter. Note: Set a single-line fraction by typing a backslash (\) before the forward slash (/).
Context Panel: Approximate≻10 (digits)
sinπ/4
12⁢2
→at 10 digits
0.7071067810
Type the expression. Press Enter. There is no better expression for the exact value than cos1.
cos1
cos⁡1
0.5403023059
Type the expression. Press Enter. This time there is a better expression for the exact value, but Maple does not provide it automatically.
Context Panel: Conversions≻To Radical
tanπ/12
tan⁡112⁢π
= radical form
2−3
0.267949192
Type either sec−1 or arcsec.
Context Panel: Evaluate and Display Inline
sec−12/3 = 16⁢π→at 10 digits0.5235987758
Maple Solution - Coded
Assign the expression and use evalf.
q≔sinπ/4; evalfq
q≔cos1; evalfq
Radical form: Use the convert command as shown.
q≔tanπ/12; evalfq
convertq,radical
In math mode type either sec−1 or arcsec.
q≔sec−12sqrt3; evalfq
Two commands can be placed on the same line but they must be separated with either a semi-colon (;) or a colon (:).
<< Previous Example Section A-2 Next Section of Appendix >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
Download Help Document