Problem: I am trying to evaluate a formula, np is numpy: Ds = pow(10,5) D = np.linspace(0, pow(10,6), 100) alpha=1.44 beta=0.44 A=alpha*(D/Ds) L=1.65 buf2=L/4.343 buf=pow(-(alpha*[D/Ds]),beta) value=exp(buf) and then I will plot this data but I get: buf=pow(-(alpha*[D/Ds]),beta) TypeError: can't multiply sequence by non-int of type 'float' How can I overcome this?
asked
Feb 17
Mashhoodch
9.1k points