Solving for Exponential Vairable

조회 수: 10 (최근 30일)
Dominique Davis
Dominique Davis 2019년 11월 3일
댓글: Dominique Davis 2019년 11월 3일
syms t
a = 600;
r = .10;
y = 600;
eq = y - a * (exp(r*t)) == 0;
tsol = solve(eq,t)
This is my code which I would like to output a number (decimal) but it is outputting in log form. Can someone please give me some advice?

채택된 답변

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH 2019년 11월 3일
syms t
a = 600;
r = .10;
y = 600;
eq = y - a * (exp(r*t)) == 0;
tsol = vpa(solve(eq,t))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numbers and Precision에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by