how to get float answer and not a Fraction ?
45 次查看(过去 30 天)
显示 更早的评论
lets say this is my code ,(simple code ) :
for some reason my answer is fraction and float point anser ,how to fix the format ?
clc;
clear all;
syms R2
R1=200
eqn=(12*R2)/(R2+R1)==5
sol_R2=simplify(solve(eqn,R2))
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!