how do I store a function into a variable and solve it?

17 vues (au cours des 30 derniers jours)
sumaiya hossain
sumaiya hossain le 4 Août 2022
Commenté : sumaiya hossain le 5 Août 2022
I am trying to calculate this function: 𝑓(𝑡) = 4(sin(2𝜋𝑡)) + exp(𝑡)/𝑡
but it keeps on telling me 'Error using sym/assume Too many output arguments.'
syms t
y = 4*sin(2*pi*t) + exp(-t)./t;
eqn = y == 0
eqn = 
solv= solve(eqn,t)
Warning: Unable to solve symbolically. Returning a numeric solution using vpasolve.
solv = 
98.5
  4 commentaires
Star Strider
Star Strider le 5 Août 2022
There remain an infinity of solutions!
sumaiya hossain
sumaiya hossain le 5 Août 2022
Hi thank you for your help, I used pasolve to gives such one value out of an infinite number of possible solutions

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by