diff --git a/app.py b/app.py index 6f6dcd9..7a7f8ab 100644 --- a/app.py +++ b/app.py @@ -559,7 +559,7 @@ def polarplot(): f = ps var = list(f.free_symbols)[0] - r = np.arange(request.json['xlim'][0]*np.pi, request.json['xlim'][1]*np.pi, 0.01) + r = np.linspace(request.json['xlim'][0]*np.pi, request.json['xlim'][1]*np.pi, 1024) theta = [f.subs(var, r).evalf() for r in r] ax = plt.subplot(111, projection='polar') ax.plot(r, theta, c='purple', lw=4) diff --git a/templates/index.html b/templates/index.html index 3aa1df5..bb72537 100644 --- a/templates/index.html +++ b/templates/index.html @@ -40,9 +40,9 @@
acos
, atan
, sinh
, cosh
, tanh
a*x^2 + b*x + c = 0
, a / b = c / d^3
sqrt(x) > x
[1,2,3]
, [[1,2],[3,4]]
[1,2,3]
, [[1,2],[3,4]]
, ones(5)-eye(5)
[sin(2*t), cos(3*t)]
, [cos(3*t), sin(3*t), t]
, [t, sin(3*t), 0]
cos(phi)
, cos(6*phi)+2
, 0.5*phi + sin(3*phi)
cos(phi)
, cos(6*phi)+2
, cos(6*phi+0.2*phi)+2
1,2,3,4
, 1 2 3 4
8x8 weighted graph
I'll try