What is this mysterious operator ? I tried using vpa(), but still the operator got promped. However, using vpa(ans,2) the operator disappeared. I guess it has something to do with numerical accuracy in the symbolic math engine...
MATLAB Online에서 열기 Ran in: 테마복사 syms G M R y v(y) Dv = diff(v,y); eqn = diff(v,y,2) == -G*M/(y+R)^2; cond = [v(0)==100,Dv(0)==0]; sol = dsolve(eqn,cond) sol = Gnum = 6.67430e-11; % gravitational constant Mnum...
Open in MATLAB Online x1=0.2232585; x2=0.2232585; iteration=0; whiletrue iteration=iteration+1; symsx1s x2s t func=(x2s-x1s^2)^2+(1-x1s)^2; dif_x1=diff(func,x1s); dif_x2=diff(func,x2s); grad_x1_temp=vpa(subs(dif_x1,x1)); ...