Maths Solution to a equation

hey guys, does anyone know how to solve this: to isolate n
cos^n(0.18)=sqrt(2)
thanks

6 Commenti

Torsten
Torsten il 10 Mag 2022
Hint: Take log on both sides.
I know the simplified solution, is there anyway to do log of base cos(x) in matlab?
What is the "simplified solution" ?
You can take logs to any basis on both sides and get the correct solution:
n * log10(cos(0.18)) = log10(sqrt(2))
n * log(cos(0.18)) = log(sqrt(2))
n * log2(cos(0.18)) = log2(sqrt(2))
and so on.
Miguel Albuquerque
Miguel Albuquerque il 10 Mag 2022
Modificato: Miguel Albuquerque il 10 Mag 2022
n=real((1/2*log10(2))/(log10(cos(n))));
This is the answer by simplifying the equation
Can't you solve these equations for n ?
n * log10(cos(0.18)) = log10(sqrt(2))
n * log(cos(0.18)) = log(sqrt(2))
n * log2(cos(0.18)) = log2(sqrt(2))
yes I can

Accedi per commentare.

 Risposta accettata

syms n
eqn = cos(0.8)^n == sqrt(2) ;
s = solve(eqn,n)
s = 
vpa(s)
ans = 

Più risposte (0)

Categorie

Prodotti

Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by