When I run the code I get this error message:
FindRoot::nlnum: The function value {Eq1 - 0.08*Eq2} is not a list of numbers with dimensions {1} at {d} = {0.001}.
How can I correct the error and find the value for d
? And also I don't know how many roots can Eqt has.
(*initial values to obtain the root*)
a = 7.06; b = 0; c = 0.107763;
(*defining the equations*)
Eq1 [d_?NumericQ] :=
Eq1[d]= Simplify[((a-b)*((628*d)^(1-c))*Cos[c*Pi/2])];
Eq2 [d_?NumericQ] :=
Eq2[d] = Simplify[(1+2*((628*d)^(1-c))*Sin[c*Pi/2]+((628*d)^(2*(1-c)))];
(*define the equation which the root must be calculated*)
Eqt = Evaluate[Eq1 - 0.08*Eq2 == 0];
(*here I like to find the root d*)
FindRoot[Eqt, {d, 0.001}]
Eqt = Evaluate[Eq1[d] - 0.08*Eq2[d] == 0]
will fix the error. $\endgroup$