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

4 次查看(过去 30 天)
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 个评论
sumaiya hossain
sumaiya hossain 2022-8-5
Hi thank you for your help, I used pasolve to gives such one value out of an infinite number of possible solutions

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by