This seems relevant:
https://stackoverflow.com/questions/45818538/where-can-i-put-a-startup-script-in-jupyter
On Wed, Sep 7, 2022 at 3:15 PM Rogerio wrote:
>
> I have some frequently used small codes in the init.sage file. However, the
> file is not loaded when I start a session with jupyter
I have some frequently used small codes in the init.sage file. However, the
file is not loaded when I start a session with jupyter or jupyterlab. To do
it I have to use `load(sage.env.SAGE_STARTUP_FILE)`.
How can I get init.sage automatically loaded when I start a session with
jupyterlab?
There are actually infinite solutions. The sympy solvers can handle it.
Try
```
sage: var(x)
sage: solve( sin(x)==1/2, x, algorithm='sympy' )
```
See https://docs.sympy.org/latest/modules/solvers/solveset.html
Rogerio
Em quarta-feira, 7 de setembro de 2022 às 11:41:13 UTC-3, erentar escreveu:
Hello! I hope the title was clear enough but here is my problem:
```
sage: var(x);
sage: solve( sin(x)==.5, x )
[x == 1/6*pi]
```
I believe this equation should have 2 solutions: `pi/6` and `5pi/6`.
What mistake did i do?
Thank you
--
You received this message because you are subscribed to