How to change big fractions in small numbers in command windows

5 views (last 30 days)
Hello, i have this code and the answer of this code is 4cos(pi*t) - 3sin(pi*t). I have completed the code but the answer shown in command windows is in big fractions. How do i change these fractions?
CODE:
clc
syms s S
u=(4*s)-(3*pi);
v=(s^2)+(pi^2);
f(S)=u/v;
ilaplace(f(S))
Answer:
4*cos((2778046668940015^(1/2)*t)/16777216) - (50331648*2778046668940015^(1/2)*pi*sin((2778046668940015^(1/2)*t)/16777216))/2778046668940015

Accepted Answer

Walter Roberson
Walter Roberson on 27 Dec 2020
vpa()
Or set sympref to default to floating-point output

More Answers (1)

Stephen23
Stephen23 on 27 Dec 2020
syms s S
u=(4*s)-(3*sym(pi));
v=(s^2)+(sym(pi)^2);
f(S)=u/v;
ilaplace(f(S))
ans = 

Tags

Community Treasure Hunt

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

Start Hunting!