Ask Your Question

John L's profile - activity

2024-02-21 14:00:32 +0200 received badge  Famous Question (source)
2023-09-09 17:57:23 +0200 received badge  Popular Question (source)
2023-07-17 17:52:29 +0200 received badge  Notable Question (source)
2022-10-12 02:01:12 +0200 received badge  Notable Question (source)
2022-10-12 02:00:28 +0200 commented answer Changing the meaning of /

Sure, this will work, but then I have to do it in every single line that involves division. There are a lot of them, it

2022-10-12 02:00:03 +0200 commented answer Changing the meaning of /

Sure, this will work, but then I have to do it in every single line that involves division. There are a lot of them, it

2022-10-12 01:04:05 +0200 asked a question Changing the meaning of /

Changing the meaning of / I have a program that makes some calculations in a ring R, where R may be either approximate r

2022-10-01 06:20:21 +0200 received badge  Popular Question (source)
2022-06-02 20:15:30 +0200 edited question indeterminacy_locus() broken?

indeterminacy_locus() broken? The following code throws an error: A2.<x,y>= AffineSpace(QQ,2) H = End(A2) f = H([

2022-06-02 20:15:07 +0200 asked a question indeterminacy_locus() broken?

indeterminacy_locus() broken? The following code throws an error: A2.<x,y>= AffineSpace(QQ,2) H = End(A2) f = H([

2021-04-02 20:49:16 +0200 received badge  Popular Question (source)
2020-12-12 16:35:10 +0200 received badge  Good Question (source)
2020-12-10 07:37:24 +0200 received badge  Nice Question (source)
2020-12-05 16:46:45 +0200 received badge  Editor (source)
2020-12-05 16:46:12 +0200 asked a question Concatenate bezier paths?

I have two bezier paths path1 and path2 (constructed using arc(...)). They have the same beginning point and end point, and I'd like to join them into a single path and fill the interior. What's the right way to do this? If I just try to concatenate the lists path1.path and path2.path and then call bezier_curve() and the result, it generates an error when I try to display it.

Here is a simple failed attempt.

arc1 = arc((0,1),sqrt(2),sector=(5*pi/4,7*pi/4))
arc2 = arc((0,-1),sqrt(2),sector=(pi/4,3*pi/4))

path1 = arc1[0].bezier_path()
path2 = arc2[0].bezier_path()

combo = bezier_path(path1[0].path+path2[0].path)
combo.show()
2020-11-21 20:16:40 +0200 received badge  Supporter (source)
2020-11-20 17:03:05 +0200 asked a question Filling a hyperbolic polygon

I am trying to draw some hyperbolic polygons in the Poincare disk model.

poincaredisc = HyperbolicPlane().PD()
lines = [ poincaredisc.get_geodesic(1,I), poincaredisc.get_geodesic(I,-1), poincaredisc.get_geodesic(1,-1) ]
plots = [ plot(line,axes=False) for line in lines ]
show(sum(plots))

I'd like to fill it in with a solid color. This isn't documented in HyperbolicPlane as far as I can tell. But maybe there is some general-purpose way to do this with these kind of graphics objects. Any ideas?

2016-08-30 15:45:45 +0200 received badge  Famous Question (source)
2016-01-27 02:09:27 +0200 received badge  Notable Question (source)
2015-04-02 15:40:14 +0200 received badge  Popular Question (source)
2015-02-21 00:21:11 +0200 received badge  Student (source)
2015-02-17 22:30:44 +0200 commented question sage-mode installation

Yes, haven't noticed problems with anything else.

2015-02-17 21:07:30 +0200 asked a question sage-mode installation

I'm new to sage, and trying to set up sage_mode with emacs. As suggested here, I run "sage -i sage_mode" to install it. This gives the error message

mkdir: cannot create directory ‘’: No such file or directory /usr/bin/sage: line 766: /usr/build/pipestatus: No such file or directory

Googling this doesn't seem to turn up anything relevant. Any suggestions? I'm running the build from the Arch Linux repos (64 bit).