Ask Your Question

ljbo's profile - activity

2018-02-17 01:55:10 +0200 received badge  Nice Question (source)
2018-02-16 23:25:43 +0200 asked a question Sage 8.1: jupyter does not start on MacOS Sierra

I have just installed Sage 8.1 on MacOS Sierra. After I launch the application, I am told Jupyter did not start and I get offered to open the log. Doing so, here is what I get there

/Applications/SageMath-8.1.app/Contents/Resources/sage/src/bin/sage-env: line 322: [: /Applications/SageMath-8.1: binary operator expected Traceback (most recent call last): File "/Applications/SageMath-8.1.app/Contents/Resources/sage/src/bin/sage-notebook", line 13, in <module> from sage.env import SAGE_ROOT ImportError: No module named sage.env

2016-09-03 23:06:11 +0200 commented question Solution of ODE expressed with hyperbolic trigonometric function

Thanks a lot for those hints: I had no idea I could get access to Maxima in such a way. As for my problem, from a human point of view, it is natural to want the "shorter" answer. I have just checked that Mathematica does actually produce the formula with tanh. Besides, the math behind exponentialize and demoivre must have an equivalent in hyperbolic trigonometry.

2016-08-31 14:46:15 +0200 received badge  Student (source)
2016-08-31 14:41:34 +0200 asked a question Solution of ODE expressed with hyperbolic trigonometric function

With Sage 7.3, consider

t=var('t')
v=function('v')(t)
m, g, h = var('m g h')
assume(m > 0)
assume(g > 0)
assume(h > 0)
sol = desolve(m*diff(v,t) == m*g - h*v**2, v, ivar=t)
show(sol)
sol.solve(v)

The outcomes are

$$\newcommand{\Bold}[1]{\mathbf{#1}}-\frac{m \log\left(\frac{h v\left(t\right) - \sqrt{g h m}}{h v\left(t\right) + \sqrt{g h m}}\right)}{2 \, \sqrt{g h m}} = C + t$$

$$\newcommand{\Bold}[1]{\mathbf{#1}}\left[v\left(t\right) = \frac{\sqrt{g h m} {\left(e^{\left(\frac{2 \, \sqrt{g h m} C}{m} + \frac{2 \, \sqrt{g h m} t}{m}\right)} + 1\right)}}{h {\left(e^{\left(\frac{2 \, \sqrt{g h m} C}{m} + \frac{2 \, \sqrt{g h m} t}{m}\right)} - 1\right)}}\right]$$

Nevermind desolve came with an implicit solution I had to further solve by hand but then solve missed that the last expression for v(t) is a mere hyperbolic tangent. How would I get the solution in its simpler form?

$$v(t) = \sqrt{\frac{gm}{h}}\ \text{tanh}\left(\sqrt{\frac{gh}{m}}(t + m C)\right)$$

Thanks for any hint!

2015-11-02 18:00:09 +0200 commented answer After upgrade to 6.9 we obtain SIGILL ...

So anyway, my processors are the latest Nehalem. I guess the illegal instruction came with Sandy Bridge or Ivy Bridge.

2015-11-02 17:57:29 +0200 commented answer After upgrade to 6.9 we obtain SIGILL ...

It is a macro actually: the function is mpf_set_d.

2015-11-02 17:56:32 +0200 commented answer After upgrade to 6.9 we obtain SIGILL ...

Running sage with -gdb reveals the illegal instruction is in libmpir in function __gmpf_set_d.

2015-11-02 16:56:53 +0200 answered a question After upgrade to 6.9 we obtain SIGILL ...

Same problem on Mac Pro 2010 with X5690 processors.