pkg load symbolic
syms a b
assume(a, 'positive')
assume(b, 'positive')
pt1=[0,3591] %could place all pts in one array
pt2=[66342,.01]
x1=pt1(1,1);y1=pt1(1,2)
x2=pt2(1,1);y2=pt2(1,2)
sol = solve (y1==a*b^x1, y2==a*b^x2, a, b); %creates a structure
a_val=double(sol.a) %converts structure to double
b_val=double(sol.b)
The error I get is:
warning: Using rat() heuristics for double-precision input (is this what you wanted?)
warning: called from
sym at line 221 column 7
binop_helper at line 54 column 5
ineq_helper at line 35 column 5
eq at line 53 column 5
test_symbolic at line 28 column 5
Waiting.....................