Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

With the advice from @achrzesz and a bit more work, the correct solution is

from sage. All import *
from sage.numerical.optimize import minimize, find_local_maximum
from IPython.display import display, Math, Latex
def showm(v):
    display(Math(latex(v)))

x,y = var('x y')

from matplotlib import spines, axes
i = 16
p = region_plot(
    tan(x^2 - y^2)>0,
    (-i*pi,+i*pi), (-i*pi,+i*pi),linewidths=0,
    incol='green',outcol='lightblue',
)
p.show(frame=False,axes=False)

I hope this helps someone.

GPN

With the advice from @achrzesz and a bit more work, the correct solution is

from sage. All sage.all import *
from sage.numerical.optimize import minimize, find_local_maximum
from IPython.display import display, Math, Latex
def showm(v):
    display(Math(latex(v)))

x,y = var('x y')

from matplotlib import spines, axes
i = 16
p = region_plot(
    tan(x^2 - y^2)>0,
    (-i*pi,+i*pi), (-i*pi,+i*pi),linewidths=0,
    incol='green',outcol='lightblue',
)
p.show(frame=False,axes=False)

I hope this helps someone.

GPN