Ask Your Question

jllb's profile - activity

2018-09-27 03:38:06 -0600 asked a question Load module from remote server

Hi, I am using a remote sage notebook public server (such as http://sage.math.canterbury.ac.nz/). I would like to be able to load my own python modules, but I don't know how can I access local files, such as

import sys
sys.path.append('path-to-file-in-my-local-drive')
import module-name

Is there any way to do that?

2017-09-15 14:00:54 -0600 received badge  Famous Question (source)
2017-08-17 17:36:31 -0600 received badge  Taxonomist
2017-02-14 04:27:23 -0600 received badge  Good Question (source)
2016-08-09 13:36:05 -0600 received badge  Popular Question (source)
2016-04-11 15:28:21 -0600 commented answer Possible bug of sum function

Thank you, however I find this behavior at least strange. If n is a Sage Integer, I understand range(n) produces a list of Python integers. So in both cases the sum runs over a list of Python integers. However, in one case they are converted into Sage integers and in the other case they aren't. I don't understand why.

2016-04-11 12:15:50 -0600 asked a question Possible bug of sum function

Consider the following code:

def s(n):
    return sum(k/n for k in range(n + 1))

L0 = s(2)

for n in range(2, 3):
    L1 = s(n)

The answers are (using sage 7.1):

print L0, L1
(3/2, 1)

In the second case sage is using the usual integer division of python 2.x while in the first one it is using the exact representation of rationals. Is this a known bug?

2015-11-10 14:33:59 -0600 commented answer Sagemath server using openid

Thank you very much. When you say enable SSL, you mean something as explained in https://www.digitalocean.com/communit... ?

2015-11-08 13:34:56 -0600 received badge  Editor (source)
2015-11-08 13:31:31 -0600 asked a question Sagemath server using openid

Is it difficult to allow users to create accounts on our Sagemath server using openid authentication? In fact, we would like to use the gmail implementation of openid since our university email is managed by Google. Any hints, please?

2015-05-06 01:27:16 -0600 received badge  Notable Question (source)
2015-05-06 01:27:16 -0600 received badge  Popular Question (source)
2014-11-19 10:07:44 -0600 asked a question Typeset mode in iPython notebook

Hi, I'm trying to set typeset mode = True using the iPython notebook in Sage 6.4, but I don't find how to do it. Is it already implemented?

2014-10-19 17:44:26 -0600 asked a question integral should not be zero
F = sqrt((cos(x) - 1)^2 + sin(x)^2)
F.integrate(x, 0, 2*pi)

yields 0, the expected answer is 8.

2014-10-10 05:06:39 -0600 commented answer Problem with solution_dict=True

Version is 6.3. Seems to me sagenb is using an old version without the bug.

2014-10-09 08:48:51 -0600 asked a question Problem with solution_dict=True
var('x y')
solve(x + y, [x, y], solution_dict=True)

yields AttributeError: 'list' object has no attribute 'left'

Is this a bug?

2014-06-29 14:27:49 -0600 received badge  Famous Question (source)
2014-06-29 14:27:49 -0600 received badge  Notable Question (source)
2014-06-29 14:27:49 -0600 received badge  Popular Question (source)
2014-02-11 21:45:46 -0600 asked a question Missing solution in homogeneous equation
var('x y')
solve(x*y, [x, y])

returns only the solution x=0, missing y=0. Is this a known bug? I am using sage 5.13.

2013-12-11 20:45:49 -0600 asked a question Sage plot inner structure

Hi, I would like to manipulate the raw data of a plot. More specifically, I'd like to get the set of points produced by implicit_plot in order to use it for another task. Is that possible?

2013-09-29 10:17:41 -0600 received badge  Famous Question (source)
2013-02-14 11:49:34 -0600 received badge  Notable Question (source)
2013-01-29 21:00:32 -0600 commented question (abs(sin(x))^2).simplify_full()

Here, using Ubuntu 12.04, it consistently yields abs(sin(x))^2. Please note that the similar input abs(sin(x)^2).simplify_full() produces the right answer. Version 5.5 does not have this problem.

2013-01-29 20:33:41 -0600 received badge  Citizen Patrol (source)
2013-01-29 03:07:09 -0600 asked a question (abs(sin(x))^2).simplify_full()

I think (abs(sin(x))^2).simplify_full() should render sin(x)^2. This is not the case in sage 5.6 even with the assumption assume(x, 'real'). Is this a [known] bug?

2012-10-09 01:09:01 -0600 received badge  Popular Question (source)
2011-12-18 23:10:53 -0600 received badge  Supporter (source)
2011-12-16 05:40:02 -0600 received badge  Nice Question (source)
2011-12-15 06:15:11 -0600 received badge  Student (source)
2011-12-15 02:30:18 -0600 asked a question Solve a simple system of non-linear equations

Maple can solve a system of equations such as $\sin x + y =0, \sin x - y =0$. However,

var('x y') solve([sin(x) + y ==0, sin(x) - y==0], [x, y]) produces no useful answer.

Is there any other way to proceed?