python - Transcendental Equation: can't multiply sequence by non-int of type 'float' -
I'm trying to solve the following in Simply, but I'm not receiving 'type' float 'Error:
F = symbol (' F ') S = 7 * 10 ** 9 L = 500 * 10 ** (-9) K = 10.37 * 10 * * (-9 ) E = 1 * 10 ** (-9), 48 * 10 ** (-9), 1c = 25 * 10 ** (-9) solution (F - (S * A) / (1+ ( E * C ** 2) * sec ((2 * L / K) * (SQRT (F * A / E)))))) ------------ ---- -------------------------------------------------- --------- Type error traceback (most recent call final) / & lt; Ipython-input-51-3831e4f1c049 & gt; In & lt; Module & gt; () ---- & gt; 1 solution (Float (F - (S * A) / (1+ (** 2 * L / K) * (SQL * (E * C / 2 **) * (SQL) (S * F * A / E)))) TypeError: Type 'float' can not multiply the sequence by non-int
e
is a tupal due to a comma.
& gt; & Gt; & Gt; E = 1 * 10 ** (-9), 48 * 10 ** (- 9), 1> gt; & Gt; & Gt; E (1e-09, 4.8000000000000006-08, 1)
You can increase views like Tuple with only integer, not float, which gives error.
& gt; & Gt; & Gt; E * 2 (1e-09, 4.8000000000000006-08, 1, 1e-09, 4.8000000000000006-08, 1) & gt; & Gt; & Gt; E * 2.1 Traceback (most recent call final): File "& lt; stdin>", line 1, & lt; Module & gt; TypeError: Can not multiply the sequence by the non-inset type of 'float' I / O>
I think you did not mean to make a tuple in the middle of the equation, so You should fix it.
Comments
Post a Comment