login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for SandboxErik revision 1 of 2

1 2
Editor: hemmecke
Time: 2018/05/24 20:47:26 GMT+0
Note:

changed:
-
How do I find the n-root 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!


How do I find the n-root of a number?

You can do it symbolically or numerically.

fricas
nthRoot(4, 7)

\label{eq1}\root{7}\of{4}(1)
Type: AlgebraicNumber?
fricas
nthRoot(4.0, 7)

\label{eq2}1.2190136542 \<u> 044754409(2)
Type: Float

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).

fricas
log %e

\label{eq3}1(3)
Type: Expression(Integer)

The lenght of a vector?

Just enter the formula.

fricas
v := vector [1,3,-5]

\label{eq4}\left[ 1, \: 3, \: - 5 \right](4)
Type: Vector(Integer)
fricas
len := sqrt dot(v,v)

\label{eq5}\sqrt{35}(5)
Type: AlgebraicNumber?

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.

fricas
)clear prop v
solve(v=H*r, r)

\label{eq6}\left[{r ={v \over H}}\right](6)
Type: List(Equation(Fraction(Polynomial(Integer))))

And I guess lcm is defined for only 2 numbers and not 3?

You can compute the lcm of a list of values.

fricas
lst := [n for n in 1..10]

\label{eq7}\left[ 1, \: 2, \: 3, \: 4, \: 5, \: 6, \: 7, \: 8, \: 9, \:{1
0}\right](7)
Type: List(PositiveInteger?)
fricas
lcm lst

\label{eq8}2520(8)
Type: PositiveInteger?

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!