ํ•„ํ„ฐ ์ง€์šฐ๊ธฐ
ํ•„ํ„ฐ ์ง€์šฐ๊ธฐ

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

์กฐํšŒ ์ˆ˜: 4 (์ตœ๊ทผ 30์ผ)
sumaiya hossain
sumaiya hossain 2022๋…„ 8์›” 4์ผ
๋Œ“๊ธ€: sumaiya hossain 2022๋…„ 8์›” 5์ผ
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
Star Strider
Star Strider 2022๋…„ 8์›” 5์ผ
There remain an infinity of solutions!
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 Center ๋ฐ File Exchange์—์„œ Calculus์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

์ œํ’ˆ


๋ฆด๋ฆฌ์Šค

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by