Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
就是这样:y'(t)=y(t)/tt^2/y^2*ty(1)=1
我试过:函数hazi3b()
[T,Y] = ode45(@bfugveny, [1 12], 1); 情节(T,Y,'gx')
结尾
和:
函数 dy=bfugveny(t,y)
dy = y(t)/t - t^2/(y^2*t);
你不需要写y(t)在你的公式中。
y(t)
y传入你的预言机已经是-evaluated y-at-time-的猜测t。
y
t
所以试试
dy = y/t - t^2/(y^2*t);