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์›” 4์ผ
There are likely an infinity of solutions โ€”
syms t
y = 4*sin(2*pi*t) + exp(-t)./t;
figure
fplot(y, [0 10])
grid
.
sumaiya hossain
sumaiya hossain 2022๋…„ 8์›” 4์ผ
The range for the question was -3<t<10
so I did this:
but it still says Unable to solve symbolically, returing to numeric solution using vpasolve
in sym/solve line 304
In (line 7)
syms t
y = 4*sin(2*pi*t) + exp(-t)./t
yย =ย 
eqn = y -- 0
eqnย =ย 
figure
fplot(y,[-3 10])
grid
solv =solve(eqn,t)
Warning: Unable to solve symbolically. Returning a numeric solution using vpasolve.
solvย =ย 
98.5
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๊ฐœ)

์นดํ…Œ๊ณ ๋ฆฌ

๋„์›€๋ง ์„ผํ„ฐ ๋ฐ File Exchange์—์„œ Symbolic Math Toolbox์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

์ œํ’ˆ

๋ฆด๋ฆฌ์Šค

R2022a

์งˆ๋ฌธ:

2022๋…„ 8์›” 4์ผ

๋Œ“๊ธ€:

2022๋…„ 8์›” 5์ผ

Community Treasure Hunt

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

Start Hunting!

Translated by