Re: [sage-support] init.sage

2022-09-07 Thread William Stein
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

[sage-support] init.sage

2022-09-07 Thread Rogerio
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?

[sage-support] Re: (Noob question) solve( sin(x)==.5, x) should return two solutions but only returns one

2022-09-07 Thread Rogerio
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:

[sage-support] (Noob question) solve( sin(x)==.5, x) should return two solutions but only returns one

2022-09-07 Thread erentar2002
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