

last edited 1 year ago by hemmecke 
1  
Editor: hemmecke
Time: 2018/05/24 20:47:26 GMT+0 

Note: 
changed:  How do I find the nroot of a number? You can do it symbolically or numerically. \begin{axiom} nthRoot(4, 7) nthRoot(4.0, 7) \end{axiom} How do I solve inequalites? FriCAS lacks support for this. How do I find the angle in a scalar product? Degrees and radians. Homework! Program the mathematical formula and you are done. Is it possible to find the logarithm with base 10, 2 and 3 etc? https://en.wikipedia.org/wiki/Logarithm#Change_of_base In FriCAS 'log' denotes the natural logarithm and '%e' denotes 'exp(1)'. \begin{axiom} log %e \end{axiom} The lenght of a vector? Just enter the formula. \begin{axiom} v := vector [1,3,5] len := sqrt dot(v,v) \end{axiom} How can I rewrite a expression to with respect to a variable? For example v=H*r and to make axiom rewrite this as r=H/r? Solve for it. \begin{axiom} )clear prop v solve(v=H*r, r) \end{axiom} And I guess lcm is defined for only 2 numbers and not 3? You can compute the lcm of a list of values. \begin{axiom} lst := [n for n in 1..10] lcm lst \end{axiom} I realize that this is a lot of questions, so it is completely okay if you answer each questions short. I have tried a lot on my own, but need hints to understand the whole picture. I will also try to understand the coding of the programme afterwards:)It took me a short time to become natural with the programme, so thanks a lot!
You can do it symbolically or numerically.
nthRoot(4,7)
(1) 
nthRoot(4.0,7)
(2) 
FriCAS lacks support for this.
Homework! Program the mathematical formula and you are done.
https://en.wikipedia.org/wiki/Logarithm#Change_of_base
In FriCAS log
denotes the natural logarithm and %e
denotes exp(1)
.
log %e
(3) 
Just enter the formula.
v := vector [1,3, 5]
(4) 
len := sqrt dot(v,v)
(5) 
Solve for it.
)clear prop v
solve(v=H*r,r)
(6) 
You can compute the lcm of a list of values.
lst := [n for n in 1..10]
(7) 
lcm lst
(8) 
I realize that this is a lot of questions, so it is completely okay if you answer each questions short. I have tried a lot on my own, but need hints to understand the whole picture. I will also try to understand the coding of the programme afterwards:)It took me a short time to become natural with the programme, so thanks a lot!