how to solve log log equation??
2 views (last 30 days)
Show older comments
clc ,clear
syms m
m1=7;
m2=9.41;
t1=273+30;
t2=273+50;
t=40+273
b=(log10(log10(m1))-log10(log10(m2)))/((log10(t1)-(log10(t2))));
a=log10(log10(m1))-b*log10(t1);
a
b
log10(log10(m))=a-b*log10(t);
solve(m)
Answers (1)
Sulaymon Eshkabilov
on 23 Dec 2023
Here is the corrected code (note how the EQN is set up for the given equation):
clc, clearvars
syms m
m1=7;
m2=9.41;
t1=273+30;
t2=273+50;
t=40+273;
b=(log10(log10(m1))-log10(log10(m2)))/((log10(t1)-(log10(t2))));
a=log10(log10(m1))-b*log10(t1);
fprintf('a = %f; b = %f \n', [a, b])
EQN =log10(log10(m))==a-b*log10(t);
SOL = solve(EQN);
fprintf('Solution: m = %1.16f with solve() \n', double(SOL));
See Also
Categories
Find more on Mathematics and Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!