problem with giac integration
this problem is present with W10 SageMath notebook 9.2
and also with W10 WSL Jupyter_lab SageMath notebook 9.2.
you can run this code below many times but you can't use restart the kernel and run again it seems there is a socket problem
not sure its linked to :
https://ask.sagemath.org/question/42705/interface-problem-integrate-with-giac/
or https://ask.sagemath.org/question/49192/possible-bug-in-sage-giac-integration-interface-needs-confirmation/ or
https://ask.sagemath.org/question/49176/unable-to-parse-giac-output-error/
so I open a new question
var('x,y,z,')
var('xLow,xUp')
var('yLow,yUp')
rNum=1
#xLow=sqrt(4*y^2/(sqrt(2) - 2) + sqrt(2)/(sqrt(2) - 2) - 2/(sqrt(2) - 2))
#xUp=y*sin(1/9*pi)/cos(1/9*pi)
#yLow=0.379024477
#yUp=0.921891033
zLow=0
zUp=sqrt(-x^2 - y^2 + 1)
zInt=integrate(1,z,zLow,zUp)
show(zInt)
yIntegr=integrate(zInt,y,yLow,yUp,algorithm="giac")
xIntegr=integrate(zInt,x,xLow,xUp,algorithm="giac")
show("yIntegr : " , yIntegr)
show("xIntegr : " , xIntegr)
below after reset:
I 10:37:27.748 LabApp] Starting buffering for 4b9b134b-d60d-461f-a4fd-1bb57203ff69:709475c8-17b7-4321-959e-b3564d837fc3
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/ortollj/sage-9.2/local/lib/python3.8/site-packages/sage/repl/ipython_kernel/__main__.py", line 3, in <module>
IPKernelApp.launch_instance(kernel_class=SageKernel)
File "/home/ortollj/sage-9.2/local/lib/python3.8/site-packages/traitlets/config/application.py", line 663, in launch_instance
app.initialize(argv)
File "</home/ortollj/sage-9.2/local/lib/python3.8/site-packages/decorator.py:decorator-gen-124>", line 2, in initialize
File "/home/ortollj/sage-9.2/local/lib/python3.8/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/home/ortollj/sage-9.2/local/lib/python3.8/site-packages/ipykernel/kernelapp.py", line 547, in initialize
self.init_sockets()
File "/home/ortollj/sage-9.2/local/lib/python3.8/site-packages/ipykernel/kernelapp.py", line 266, in init_sockets
self.shell_port = self._bind_socket(self.shell_socket, self.shell_port)
File "/home/ortollj/sage-9.2/local/lib/python3.8/site-packages/ipykernel/kernelapp.py", line 213, in _bind_socket
return self._try_bind_socket(s, port)
File "/home/ortollj/sage-9.2/local/lib/python3.8/site-packages/ipykernel/kernelapp.py", line 189, in _try_bind_socket
s.bind("tcp://%s:%i" % (self.ip, port))
File "zmq/backend/cython/socket.pyx", line 550, in zmq.backend.cython.socket.Socket.bind
File "zmq/backend/cython/checkrc.pxd", line 26, in zmq.backend.cython.checkrc._check_rc
raise ZMQError(errno)
zmq.error.ZMQError: Address already in use