@interact
def plot_weibull(m=('sigma-sat', 1e-7), let0=('threshold', 0.001), w=('width', 100.0), s=('exponent', 1.0)):
p = [1.77e-8, 0.584, 240.1, 0.812]
f(x) = p[0] * (1 - 1/(exp(((x - p[1])/p[2]) ^ p[3])))
f(x) = m * (1 - 1/(exp(((x - let0)/w) ^ s)))
plot_semilogy(f(x), xmin=let0+0.001, xmax=120, thickness=2).show()
plot_loglog(f, xmin=let0+0.001, xmax=120, thickness=2).show()
plot(f(x), 0, 120, thickness=2).show()
plot_semilogx(f, xmin=let0+0.001, xmax=120, thickness=2).show()
return
plot_weibull(1.77e-8, 0.584, 240.1, 0.812)
Interact: please open in CoCalc
*** WARNING: Code contains possible implicit multiplication ***
*** Check if any of [ 1e, 77e, 77e ] need a "*" sign for multiplication, e.g. 5x should be 5*x ! ***
Error in lines 11-11
Traceback (most recent call last):
File "/cocalc/lib/python3.11/site-packages/smc_sagews/sage_server.py", line 1244, in execute
exec(
File "", line 1, in <module>
TypeError: InteractFunction.__call__() takes 1 positional argument but 5 were given