Trying to find the value of z for any value of k
1 次查看(过去 30 天)
显示 更早的评论
I have the following code:
syms k
A = [1 -((k^2)+3) ((k^2)+3) -1];
Y = roots(A)
which returns:
Y = 1
k^2/2 - (k*(k^2 + 4)^(1/2))/2 + 1
(k*(k^2 + 4)^(1/2))/2 + k^2/2 + 1
now, I have:
Z = Y(3,1)*Y(2,1)
which returns:
Z =
(k^2/2 - (k*(k^2 + 4)^(1/2))/2 + 1)*((k*(k^2 + 4)^(1/2))/2 + k^2/2 + 1)
Now, I want to test multiple values of k in the function Z, how do I do this?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numbers and Precision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!