summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/p-orbital.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples/p-orbital.asy')
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/p-orbital.asy2
1 files changed, 1 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/p-orbital.asy b/Master/texmf-dist/doc/asymptote/examples/p-orbital.asy
index 1932e098c67..4638aa21a22 100644
--- a/Master/texmf-dist/doc/asymptote/examples/p-orbital.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/p-orbital.asy
@@ -12,7 +12,7 @@ triple f(pair t) {
real r=t.x;
real phi=t.y;
real f=f(r);
- real s=max(min(c0/f,1),-1);
+ real s=max(min(f != 0 ? c0/f : 1,1),-1);
real R=r*sqrt(1-s^2);
return (R*cos(phi),R*sin(phi),r*s);
}