Re: [sage-support] Sage 8.8 Jupyter notebook 404: Page does not exist error

2019-07-04 Thread Jack Borthwick
OK, so I tried sage -n jupyter and that works. I can reproduce the behaviour I 
was getting by running ``sage -n export’’ something must have gone wrong with 
that during the build.  I've always called the sage notebook with sage -n so it 
perhaps it defaults to export.

Thanks !
> Le 4 juil. 2019 à 08:04, slelievre  a écrit :
> 
> Here is how I would recap Sage notebook modes and
> ways to launch them (correct me if I got anything wrong).
> 
> - Jupyter Notebook
> 
>   sage -n jupyter
> 
> - JupyterLab
> 
>   sage -n jupyterlab
> 
>   note: this requires installing JuyterLab first,
>   which one can do by running in the terminal
> 
>   sage --pip install jupyterlab
> 
> - SageNB legacy notebook
> 
>   sage -n sagenb
> 
> - Sage Exporter (to export legacy notebook worksheets
>   to Jupyter Notebook documents):
> 
>   sage -n exporter
> 
> I think if you just run `sage -n` it will check whether
> you have legacy sagenb worksheets, and if so give
> you the option to run Sage Exporter or to launch a
> Jupyter Notebook server.
> 
> If you know what you want, use one of the options above.
> 
> Note that instead of
> 
> sage -n jupyter
> 
> you can also do
> 
> sage --notebook=jupyter
> 
> and similarly for the other options.
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "sage-support" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/sage-support/j7a_oPMFk-0/unsubscribe 
> .
> To unsubscribe from this group and all its topics, send an email to 
> sage-support+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to sage-support@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/sage-support 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/19b89745-fb30-4a67-9ada-9cb9eb6443eb%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/6C91A21C-ACBB-40B2-ABD5-6D144DF97364%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Sage 8.8 Jupyter notebook 404: Page does not exist error

2019-07-03 Thread Jack Borthwick
Yeah, when it built i kept getting prompts about java and then at the end it 
said the documentation hadn’t been built successfully.

I only launch sage notebook from the terminal with the option -n so I guess 
I’ll just have to rebuild . Thanks anyway 
> Le 3 juil. 2019 à 19:17, kcrisman  a écrit :
> 
> 
> 
> 
>> Actually I’ve just read more carefully what appeared in the terminal and it 
>> seems that it is missing an extension, I guess I’m going to have to rebuild? 
>> Could this be to do with the fact that I didn’t build the documentation 
>> (because I was missing the Java development tools ?)
>> 
> 
> Java development tools? 
> 
> But yes, something definitely didn't build, and I'm surprised it didn't give 
> an error.  You may need to rebuild.
> 
> OR you could just try sage -n jupyter (I think this is the right syntax) and 
> see where that gets you.
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "sage-support" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/sage-support/j7a_oPMFk-0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/c0e60566-8fd1-4b5a-b42a-59088793d62b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/38D52A44-42A1-4BE1-8DA6-509D093321BF%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Sage 8.8 Jupyter notebook 404: Page does not exist error

2019-07-02 Thread Jack Borthwick
Actually I’ve just read more carefully what appeared in the terminal and it 
seems that it is missing an extension, I guess I’m going to have to rebuild? 
Could this be to do with the fact that I didn’t build the documentation 
(because I was missing the Java development tools ?)
[W 22:25:08.051 NotebookApp] Error loading server extension 
sagenb_export.nbextension
Traceback (most recent call last):
  File 
"/Applications/sage-8.8/local/lib/python2.7/site-packages/notebook/notebookapp.py",
 line 1579, in init_server_extensions
mod = importlib.import_module(modulename)
  File "/Applications/sage-8.8/local/lib/python2.7/importlib/__init__.py", 
line 37, in import_module
__import__(name)
ImportError: No module named sagenb_export.nbextension


> Le 2 juil. 2019 à 19:16, kcrisman  a écrit :
> 
> For what it's worth, my local Sage 8.8.rc2 still seems to correctly throw up 
> the SageNB Export server, and Jupyter seems to work properly.  Exactly what 
> URL is giving you the 404?  (Though I am not on Mojave.)
>  
> I recently compiled sage 8.8 on my Mac (macOS Mojave) and everything seems to 
> work correctly, except the Sage notebook server that doesn't seem to launch 
> correctly. I often, but not always, get redirected to a page with the error 
> 404: page does not exist.
> 
> Is this something someone has already encountered before and is there a known 
> workaround without recompiling sage entirely?
>  
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "sage-support" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/sage-support/j7a_oPMFk-0/unsubscribe 
> .
> To unsubscribe from this group and all its topics, send an email to 
> sage-support+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to sage-support@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/sage-support 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/c0cac08b-5349-47fa-a968-643a53d81304%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/57913B98-59D0-456B-9B5D-DFEF0AAB418A%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Sage 8.8 Jupyter notebook 404: Page does not exist error

2019-07-02 Thread Jack Borthwick
Hi all,

I recently compiled sage 8.8 on my Mac (macOS Mojave) and everything seems 
to work correctly, except the Sage notebook server that doesn't seem to 
launch correctly. I often, but not always, get redirected to a page with 
the error 404: page does not exist.

Is this something someone has already encountered before and is there a 
known workaround without recompiling sage entirely?

Cheers,

Jack

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/988a24de-de44-4aff-83db-66be968ae303%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Unsuccessful install on Ubuntu 18.04

2018-05-16 Thread Jack Fearnley


On Monday, 14 May 2018 14:53:32 UTC-4, Jack Fearnley wrote:
>
> I just installed Sagemath 8.1 from the ubuntu repository on a fresh 
> install of Ubuntu 18.04. This was a large which loaded many packages 
> including Python2.7.
>
> When I came to run sage I got the following:
> **
> jack@jack-XPS-8910:~$ sage
> ┌┐
> │ SageMath version 8.1, Release Date: 2017-12-07 │
> │ Type "notebook()" for the browser-based notebook interface.│
> │ Type "help()" for help.│
> └┘
> Traceback (most recent call last):
>   File "/usr/share/sagemath/bin/sage-ipython", line 7, in 
> from sage.repl.interpreter import SageTerminalApp
> ModuleNotFoundError: No module named 'sage'
> jack@jack-XPS-8910:~$ 
> *
>
> Where do I go from here?
>
> I might mention that I have already loaded Anaconda with the Python3.6 
> option.  Could this be interfering in some way?
>
> Best Regards,
>Jack Fearnley
>
> Sorry to reply to my own post, but I discovered the error.  It was indeed 
> a PATH problem. When Anaconda is generated it installs itself as the first 
> element of PATH.  I have now corrected this to make Anaconda the last 
> element of PATH and sage loads without a problem.
>
I can still access unique elements of Anaconda since it is still in my path.

Jack
 

 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Unsuccessful install on Ubuntu 18.04

2018-05-14 Thread Jack Fearnley
I just installed Sagemath 8.1 from the ubuntu repository on a fresh install 
of Ubuntu 18.04. This was a large which loaded many packages including 
Python2.7.

When I came to run sage I got the following:
**
jack@jack-XPS-8910:~$ sage
┌┐
│ SageMath version 8.1, Release Date: 2017-12-07 │
│ Type "notebook()" for the browser-based notebook interface.│
│ Type "help()" for help.│
└┘
Traceback (most recent call last):
  File "/usr/share/sagemath/bin/sage-ipython", line 7, in 
from sage.repl.interpreter import SageTerminalApp
ModuleNotFoundError: No module named 'sage'
jack@jack-XPS-8910:~$ 
*

Where do I go from here?

I might mention that I have already loaded Anaconda with the Python3.6 
option.  Could this be interfering in some way?

Best Regards,
   Jack Fearnley


-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Still unable to plot long function

2017-07-04 Thread jack
As HG says, we see the speed of light. Also Plank's constant and the 
electron charge. Replacing these numbers by symbols and replacing ** by ^ 
shortens and clarifies the formula. For example at
 6.62607004*10**(-34))**2)**299792458**2
you seem to be raising a number to the power of c^2. I don't think you mean 
this!

Best Regards,
 Jack Fearnley

On Monday, 3 July 2017 14:02:51 UTC-4, HG wrote:
>
> What are you expecting to get ? I see inside few times the speed of light 
> ... What 's the meaning of the equation ?
>
> Le lundi 3 juillet 2017 15:46:37 UTC+2, Fjordforsk A/S a écrit :
>>
>> Hi, I tried many re-edits, and found a few errors along the way, however, 
>> there seems not to be any errors left, still nothing happens when issuing 
>> the plot3d command:
>>
>> plot3d(lambda x,y:(exp(I*2000*(1.60217662*10**(-19))/(299792458*6.6260700*
>> : 
>> 10**(-34)))-(sqrt(I*(1.60217662*10**(-19))/(4*6.62607004*10**(-34)*2997924
>> : 
>> 58*2000))-1.60217662*10**(-19))**2)*2000**2)/(((6.62607004*10**(-34))*
>> : 
>> *2)**299792458**2)))*(x**2+y**2)).real_part(),(x,-3*pi,3*pi),(y,0,2), adap
>> : tive=True, color=cmsel)
>>
>>
>> Thanks!
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Grobner bases of ideals

2016-12-21 Thread jack


On Wednesday, 21 December 2016 07:14:51 UTC-5, NITIN DARKUNDE wrote:
>
> Respected Sir,
> I am trying to find Groebner basis of an ideal in 
> polynomial ring in 35 variables over GF(2)(As per suggestions earlier, I am 
> working over GF(2) instead of GF(3))  but I am not able to see the output 
> using sage. Even it do not shows any error in it. So,how to get the 
> output?(Even I tried singular, but can't succeed.)
>
> -- 
> --
> Yours faithfully,
> ---
>
>
>
>
>
>
>
>
> *Mr. Nitin Shridhar Darkunde.Assistant Professor,Department of 
> Mathematics,School of Mathematical Sciences,Swami Ramanand Teerth 
> Marathwada University,Vishnupuri, Nanded-431 606 (M.S.), India.Mob. 
> No:08275268895Or   
>  09273500312*
> Try removing the semi-colon;;;
>

Best regards,
 Jack Fearnley
 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Iverson Bracket

2016-11-14 Thread Jack Kennedy
Hi, how can I work with expressions with Iverson Brackets 
?
Example:



-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Installing Sage 7.3

2016-10-17 Thread Jack Foster
By "it" I meant the SageMath file, not the .dmg  - sorry, I was unclear. I 
followed the instructions exactly but it won't work.

On Monday, October 17, 2016 at 3:21:12 PM UTC+1, vdelecroix wrote:
>
> It seems that you used the wrong procedure. As mentioned in the error 
> message that you copied 
>
> 1. Open the .tar.bz2 archive (or .dmg on OSX) 
>
> 2. Move the SageMath folder/app to where you want it to be. You can 
>also rename the directory now. 
>
> The step 2 is *not* about moving the dmg file but only the SageMath 
> folder it contains. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Installing Sage 7.3

2016-10-17 Thread Jack Foster
I did drag the SageMath file, not the .dmg - sorry, I was unclear.

On Monday, October 17, 2016 at 3:21:12 PM UTC+1, vdelecroix wrote:
>
> It seems that you used the wrong procedure. As mentioned in the error 
> message that you copied 
>
> 1. Open the .tar.bz2 archive (or .dmg on OSX) 
>
> 2. Move the SageMath folder/app to where you want it to be. You can 
>also rename the directory now. 
>
> The step 2 is *not* about moving the dmg file but only the SageMath 
> folder it contains. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Installing Sage 7.3

2016-10-17 Thread Jack Foster
I did drag the SageMath file, not the .dmg - sorry, I was unclear.

On Monday, October 17, 2016 at 3:16:21 PM UTC+1, Jack Foster wrote:
>
> After downloading the .dmg file and dragging it to my Applications folder, 
> I go to it's location via terminal:
>
> cd /Applications/SageMath
>
> Then, when I try to run sage:
>
> ./sage
>
> I get this error message
>
> ERROR:  The Sage installation tree has moved
>
>
> from 
> /Users/buildslave-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidma
>
>   to /Applications/SageMath
>
>
> This is not supported, and Sage will not work. To install Sage from a
>
> binary package:
>
>
> 1. Open the .tar.bz2 archive (or .dmg on OSX)
>
>
> 2. Move the SageMath folder/app to where you want it to be. You can
>
>also rename the directory now.
>
>
> 3. Start sage for the first time. This will then automatically patch
>
>paths in binaries.
>
>
> After starting Sage for the first time you cannot change the
>
> installation any more. To install Sage elsewhere, start over from the
>
> binary package. Or recompile Sage from scratch in the new location
>
> ("make distclean && make")
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Installing Sage 7.3

2016-10-17 Thread Jack Foster
After downloading the .dmg file and dragging it to my Applications folder, 
I go to it's location via terminal:

cd /Applications/SageMath

Then, when I try to run sage:

./sage

I get this error message

ERROR:  The Sage installation tree has moved


from 
/Users/buildslave-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidma

  to /Applications/SageMath


This is not supported, and Sage will not work. To install Sage from a

binary package:


1. Open the .tar.bz2 archive (or .dmg on OSX)


2. Move the SageMath folder/app to where you want it to be. You can

   also rename the directory now.


3. Start sage for the first time. This will then automatically patch

   paths in binaries.


After starting Sage for the first time you cannot change the

installation any more. To install Sage elsewhere, start over from the

binary package. Or recompile Sage from scratch in the new location

("make distclean && make")

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: plotting ln(x) graph on sagemath

2016-09-18 Thread jack


On Saturday, 17 September 2016 17:13:05 UTC-4, Anoz wrote:
>
> I'm trying to plot the graph ln(1+x/1-x) how do I do this on sagemath , I 
> just need the correct syntax.
>

I have just tried this on my newly installed sage7.3 on my new computer 
with Ubuntu16.04. 
P=plot(log((1+x)/(1-x)), (x, -1,1))
print(P)
gives 
Graphics object consisting of 1 graphics primitive
show(P)
gives a lengthy error message which ends with
ImportError: cannot import name scimath

I installed sage at /home/jack/Tools

One clue might be the initial message I get on initiating sage in a 
terminal. It reads:


sys:1: RuntimeWarning: not adding directory '' to sys.path since everybody 
can write to it.
Untrusted users could put files in this directory which might then be 
imported by your Python code. As a general precaution from similar 
exploits, you should not execute Python code from this directory
*
Since I am the only user of this desktop computer I am not too concerned :-)

Best regards to the sage community,
  Jack Fearnley


-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] trouble starting Sage

2013-03-17 Thread Jack Love
Hello!

I have tried downloading Sage to my laptop (MacBook Air, OS 10.7.5) two
ways: the ``app'' version and the ``not app'' version.

The non app version gives me this in my terminal window:

/Volumes/sage-5.7-OSX-64bit-10.8-x86_64-Darwin/sage/sage: line 135:  9263
Segmentation fault: 11  $SAGE_ROOT/spkg/bin/sage $@
logout

[Process completed]

When I try the app version I can't get past the ``The Sage server is
currently starting. Please wait...'' step.

Any suggestions are greatly appreciated!

Best regards,

Jack

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: Bug in global_height

2011-08-31 Thread jack
Does this bug affect the height algorithm for points on elliptic
curves?

On Aug 29, 7:36 pm, dkrumm dkr...@uga.edu wrote:
 There is a problem with the global_height function for elements of
 number fields. The fix would be very simple, just need to add two
 parentheses to the code. Below is an example of the problem. I'm
 running Sage version 4.7 on Mac OS X version 10.6.8.

 sage: K.s = QuadraticField(2)
 sage: s.global_height()
 0.346573590279973
 sage: (1/s).global_height()
 0.693147180559945

 This is incorrect since s and 1/s should have the same height. The
 problem is explained in the comments made by the author of the code:

 The absolute logarithmic height of this number field element; that
 is, the sum of the local heights at all finite and infinite places,
 with the contributions from the infinite places scaled by the degree
 to make the result independent of the parent field.

 However, it is both the arch. and non-arch. contributions that need to
 be scaled by the degree.

 The current code of global_height is :

 self.global_height_non_arch(prec)+self.global_height_arch(prec)/
 self.number_field().absolute_degree()

 The problem would be fixed if this were replaced by:

 (self.global_height_non_arch(prec)+self.global_height_arch(prec))/
 self.number_field().absolute_degree

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Sums of Modular Symbols continuing saga

2011-08-31 Thread jack
I appreciated your previous responses on this subject. I would now
like to apply these modular symbols to elliptic curves.  In
particular, I want to compute the algebraic value of a twisted L-
function by applying Birch's theorem in [MTT]

That is L(E,1,chi)^{alg} = sum_{a mod,m) chi(a)*{a,m}/Omega

For this to work, the modular symbols need to translate to real
numbers and I don't see the appropriate functions to perform this.

Best Wishes,
   Jack Fearnley


-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Sums of Modular Symbols

2011-08-02 Thread jack
Doug has successfully cleared up my confusion off-list.  I now have
working code.

Best wishes,
Jack Fearnley


-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Sums of Modular Symbols

2011-08-01 Thread jack


On Jul 31, 10:35 pm, D. S. McNeil dsm...@gmail.com wrote:
  We would like to know if certain sums of modular symbols span the
  space.

 Is this the sort of thing you had in mind?

 sage: M=ModularSymbols(11,2);M
 Modular Symbols space of dimension 3 for Gamma_0(11) of weight 2 with
 sign 0 over Rational Field
 sage: b = M.basis()
 sage:
 sage: s1 = 2*b[1] - b[2]
 sage: s2 = -b[0] + b[2]
 sage: s3 = -b[0] + b[1]
 sage: s1, s2, s3
 (2*(1,8) - (1,9), -(1,0) + (1,9), -(1,0) + (1,8))
 sage: s1.list()
 [0, 2, -1]
 sage:
 sage: V = span([s.list() for s in s1, s2, s3],QQ); V
 Vector space of degree 3 and dimension 3 over Rational Field
 Basis matrix:
 [1 0 0]
 [0 1 0]
 [0 0 1]
 sage:
 sage: s3 = s2
 sage: V = span([s.list() for s in s1, s2, s3],QQ); V
 Vector space of degree 3 and dimension 2 over Rational Field
 Basis matrix:
 [   1    0   -1]
 [   0    1 -1/2]

 Doug

Thanks for this.  There still seems to be a manual step in going from,
say,
s1 = 2*(1,8) - (1,9)
to
 s1 = 2*b[1] - b[2]

Now consider
sage: M=ModularSymbols(389,2);M
Modular Symbols space of dimension 65 for Gamma_0(389) of weight 2
with sign 0 over Rational Field

This manual step could become slow and error prone.
Any suggestions for automating this step?

Best,
Jack Fearnley


-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Sums of Modular Symbols

2011-08-01 Thread jack


On Aug 1, 11:10 pm, D. S. McNeil dsm...@gmail.com wrote:
  Thanks for this.  There still seems to be a manual step in going from,
  say,
  s1 = 2*(1,8) - (1,9)
  to
   s1 = 2*b[1] - b[2]

 I may be misunderstanding you.  Are you saying you want to enter the line

     s1 = 2*(1,8)-(1,9)

 verbatim and have it work?  

No, s1 will be the result of a calculation on sums of modular symbols
over various residue classes.

Sorry if I was not expressing myself clearly enough.

Jack

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Sums of Modular Symbols

2011-07-31 Thread jack
We would like to know if certain sums of modular symbols span the
space.  For a simple example, let

sage: M=ModularSymbols(11,2);M
Modular Symbols space of dimension 3 for Gamma_0(11) of weight 2 with
sign 0 over Rational Field
sage: M.basis()
((1,0), (1,8), (1,9))

Now, say we have three sums of symbols expressed in terms of the basis
as follows

s1 = 2*(1,8) - (1,9)
s2 = -(1,0) + (1,9)
s3 = -(1,0) + (1,8)

How can we show, in Sage, that these three sums span the space?  Or if
not, give the dimension of the subspace?

I realize that this would be a simple linear algebra problem if I
could get the coefficients involved into some kind of matrix format.

Best Wishes
 Jack Fearnley

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Heights on elliptic curves over number fields

2011-07-30 Thread jack


On Jul 29, 3:28 pm, John Cremona john.crem...@gmail.com wrote:
 Hello Jack!

 Heights are definitely implemented over number fields, but there is
 still one comment a the top of elliptic_curves/ell_point.py which says
 the contrary, so it's just an unfortunate documentation glitch.
 What's not yet implemented over number fields is height *bounds*, i.e.
 bounds between naive and canonical height.  There's a 3-digit trac
 ticket for this but no-one has got around to it.

 You can see examples in the reference manual at

 http://www.sagemath.org/doc/reference/sage/schemes/elliptic_curves/el...

 As for your example, try defining the number fields using a monic
 integer polynomial and see if that helps.

 John

 On Jul 29, 7:45 pm, jack j...@alcor.concordia.ca wrote:


Thanks John and William.  Defining my field with a monic, integer
polynomial seems to have done the trick.

I didn't use your code for this William as it hangs up as follows:

sage: sage.schemes.elliptic_curves.heegner.make_monic(2*x^3 + x^2/7 +
4*x - 2/3)
---
TypeError Traceback (most recent call
last)

/home/jack/ipython console in module()

/home/jack/Tools/sage-4.6.2-linux-64bit-ubuntu_10.04.1_lts-x86_64-
Linux/local/lib/python2.6/site-packages/sage/schemes/elliptic_curves/
heegner.pyc in make_monic(f)
   6113 
   6114 # make f monic
- 6115 n = f.degree()
   6116 f = f / f.leading_coefficient()
   6117 # find lcm of denominators

TypeError: degree() takes exactly one argument (0 given)

Perhaps I needed to declare 'x' or 'f' in some special way.

Best Wishes,
Jack Fearnley

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Heights on elliptic curves over number fields

2011-07-29 Thread jack


On Jul 29, 12:03 am, William Stein wst...@gmail.com wrote:
 On Thursday, July 28, 2011, Jack Fearnley j...@alcor.concordia.ca wrote:
  I read in the help that heights have only been implemented for elliptic

 curves over the rationals.  My research involves computing heights of
 algebraic points on elliptic curves and I have been using Magma for this.

  A colleague of mine claimed that Sage could compute heights over number

 fields and demonstrated with example 2 from Siverman's 1988 paper*

  I confirmed this on my Sage (version 4.6.2) and also successfully

 reproduced example 1.

  Suitably encouraged, I attempted to compute some heights on E37b over a

 cyclic cubic extension and failed with error messages.



  Is anyone working on implementing this functionality?
  Can anyone explain why Silverman's examples work?

 My understanding is that heights over number fields are fully implemented in
 Sage and have been for *years*.   What doc says otherwise?  What exactly
 fails?  Post an exact session.









  Best wishes,
                      Jack Fearnley

  * Computing Heights on Elliptic Curves
  Math. Comp. vol 51 No 183 (Jul 1988) pp 339-358
 http://www.jstor.org/pss/2008597

  --
  To post to this group, send email to sage-support@googlegroups.com
  To unsubscribe from this group, send email to

 sage-support+unsubscr...@googlegroups.com For more options, visit this group 
 at

 http://groups.google.com/group/sage-support

  URL:http://www.sagemath.org

 --
 William Stein
 Professor of Mathematics
 University of Washingtonhttp://wstein.org

Thanks for your prompt reply.  I must have triggered some old
documentation which said heights were not implemented over number
fields but now I cannot find it.  Anything I can find says they are
implemented!  My apologies.

I would still like to know why my example fails.  Perhaps the curve
ceases to be minimal?  The following sample compute two heights. the
first, with r=1 seems to work.  The second, with r=2, fails with a
long traceback ending with a Pari error code.


--
| Sage Version 4.6.2, Release Date: 2011-02-25   |
| Type notebook() for the GUI, and license() for information.|
--
sage:  r=1
sage: sage: u1=7*r^2+12*r+9
sage: sage: u2=9*r^2-12*r+7
sage: sage: ur=u1/u2;ur
7
sage: sage: Kr.a=NumberField(x^3-ur-4*ur*x-ur^2);Kr
Number Field in a with defining polynomial x^3 - 28*x - 56
sage: sage: E37r=EllipticCurve(Kr,[4,0,1,0,0]);E37r
Elliptic Curve defined by y^2 + 4*x*y + y = x^3 over Number Field in a
with defining polynomial x^3 - 28*x - 56
sage: sage: Pr=E37r(a,ur)
sage: sage: Pr
(a : 7 : 1)
sage: sage: Pr.height()/2
0.687081703215067
sage: r=2
sage: u1=7*r^2+12*r+9
sage: sage: u2=9*r^2-12*r+7
sage: sage: ur=u1/u2;ur
61/19
sage: sage: Kr.a=NumberField(x^3-ur-4*ur*x-ur^2);Kr
Number Field in a with defining polynomial x^3 - 244/19*x - 4880/361
sage: sage: E37r=EllipticCurve(Kr,[4,0,1,0,0]);E37r
Elliptic Curve defined by y^2 + 4*x*y + y = x^3 over Number Field in a
with defining polynomial x^3 - 244/19*x - 4880/361
sage: sage: Pr=E37r(a,ur)
sage: sage: Pr
(a : 61/19 : 1)
sage: sage: Pr.height()/2
---
PariError Traceback (most recent call
last)

/home/jack/ipython console in module()

/home/jack/Tools/sage-4.6.2-linux-64bit-ubuntu_10.04.1_lts-x86_64-
Linux/local/lib/python2.6/site-packages/sage/schemes/elliptic_curves/
ell_point.pyc in height(self, precision)
   1934
   1935 
- 1936 if self.has_finite_order():
   1937 return rings.QQ(0)
   1938

/home/jack/Tools/sage-4.6.2-linux-64bit-ubuntu_10.04.1_lts-x86_64-
Linux/local/lib/python2.6/site-packages/sage/schemes/elliptic_curves/
ell_point.pyc in has_finite_order(self)
   1542 
   1543 if self.is_zero(): return True
- 1544 return self.order() != oo
   1545
   1546 def has_infinite_order(self):

/home/jack/Tools/sage-4.6.2-linux-64bit-ubuntu_10.04.1_lts-x86_64-
Linux/local/lib/python2.6/site-packages/sage/schemes/elliptic_curves/
ell_point.pyc in order(self)
   1509 N = E._torsion_order
   1510 except AttributeError:
- 1511 N = E._torsion_bound()
   1512
   1513 # Now self is a torsion point iff it is killed by N:

/home/jack/Tools/sage-4.6.2-linux-64bit-ubuntu_10.04.1_lts-x86_64-
Linux/local/lib/python2.6/site-packages/sage/schemes/elliptic_curves/
ell_number_field.pyc in _torsion_bound(self, number_of_places)
   1379 k = 0
   1380 K = E.base_field()
- 1381 OK = K.ring_of_integers()
   1382 disc = E.discriminant()
   1383 p = Integer(1)

/home/jack/Tools/sage-4.6.2-linux-64bit-ubuntu_10.04.1_lts-x86_64-
Linux/local/lib/python2.6/site-packages/sage/rings/number_field/
number_field_base.so

[sage-support] Heights on elliptic curves over number fields

2011-07-28 Thread Jack Fearnley
I read in the help that heights have only been implemented for elliptic 
curves over the rationals.  My research involves computing heights of 
algebraic points on elliptic curves and I have been using Magma for this.


A colleague of mine claimed that Sage could compute heights over number 
fields and demonstrated with example 2 from Siverman's 1988 paper*


I confirmed this on my Sage (version 4.6.2) and also successfully 
reproduced example 1.


Suitably encouraged, I attempted to compute some heights on E37b over a 
cyclic cubic extension and failed with error messages.


Is anyone working on implementing this functionality?
Can anyone explain why Silverman's examples work?

Best wishes,
 Jack Fearnley

* Computing Heights on Elliptic Curves
Math. Comp. vol 51 No 183 (Jul 1988) pp 339-358
http://www.jstor.org/pss/2008597











--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Problems with 3d plotting

2010-01-19 Thread jack
Thanks for the suggestions.  I have now installed icedtea6-plugin  and
sun-java6-plugin together with their dependencies etc.  Running sage
still gives no output and no error message.

However, when I run in notebook mode I get a solid black square with a
message saying 'jmol loading' with a countdown.  The square then stays
black.  While this is progress of a kind, it still gives no image.

Best,
Jack


On Jan 18, 11:06 pm, Michael Madison madison.mich...@gmail.com
wrote:
 I needed to install icetea from a terminal window run:

 sudo apt-get install icedtea6-plugin

 On Jan 18, 7:23 pm, William Cauchois wcauch...@gmail.com wrote:

  I'm running Ubuntu 9.10. I installed the package sun-java6-plugin
  and it works for me.

  On Jan 18, 8:35 am, Jack Fearnley j...@alcor.concordia.ca wrote:

   I have just compiled sage-4.3 running under ubuntu 9.04 on an IBM
   pentium machine. The sage directory is in its own partition under /tools.

   I have no real need for 3d plotting but I was running through the sage
   tutorial and thought I would check it out.

   The plot3d command works silently producing no visible output and no
   error messages.

   I found that my system lacked java so I downloaded the standard ubuntu
   version using synaptic. This had no effect on plotting.

   Any thoughts?

   Best wishes,
                       Jack Fearnley- Hide quoted text -

  - Show quoted text -
-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Problems with 3d plotting

2010-01-19 Thread jack
I just tried http://jmol.sourceforge.net/demo/dots/ and it worked
perfectly.  After opening a new worksheet in the notebook mode I still
get a black square.  Two questions:

1)  Is notebook mode the only way to make 3d plots?

2) Is it possible that I have a path problem with sage in /tools
rather than /usr/bin?

Jack


On Jan 19, 12:31 pm, Jason Grout jason-s...@creativetrax.com wrote:
 jack wrote:
  Thanks for the suggestions.  I have now installed icedtea6-plugin  and
  sun-java6-plugin together with their dependencies etc.  Running sage
  still gives no output and no error message.

  However, when I run in notebook mode I get a solid black square with a
  message saying 'jmol loading' with a countdown.  The square then stays
  black.  While this is progress of a kind, it still gives no image.

 When you go to, for example,http://jmol.sourceforge.net/demo/dots/,
 does jmol work (can you rotate the model, etc.?)

 Thanks,

 Jason
-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: compile error with gfortran (for lapack and others)

2007-11-18 Thread Jack O'Connor

Brilliant. I replaced cvxopt-0.8 with the 0.9 file you linked to,
and the compile worked perfectly.

I'm running Gentoo on ppc with `gfortran -v' --- `gcc 4.1.2'. I
downloaded my first SAGE tarball this week, so I'm new to the ball
game.

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] compile error with gfortran (for lapack and others)

2007-11-17 Thread Jack O'Connor

I was running into gcc-config errors when the sage_fortran script
tried to run sage_fortran.bin, which was a symbolic link to gfortran.
(In my case, it came up when the install was trying to build lapack.)
The problem is that gfortran is sensitive to the name by which it's
called, and it doesn't know what the hell `sage_fortran.bin' means. A
simple fix was to write `/usr/bin/gfortran' directly into the
sage_fortran script, and now the compilation proceeded nicely.

Separately, I'm also running into the following error compiling
cvxopt:

gcc -pthread -shared build/temp.linux-ppc-2.5/C/base.o build/
temp.linux-ppc-2.5/C/dense.o build/temp.linux-ppc-2.5/C/sparse.o -L/
home/jj/sage-2.8.12/local/lib -L/home/jj/sage-2.8.12/local/lib/gcc-lib/
i686-pc-linux-gnu/4.0.3 -lm -llapack -lblas -lf95 -o build/lib.linux-
ppc-2.5/cvxopt/base.so
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/../../../../powerpc-
unknown-linux-gnu/bin/ld: cannot find -lf95

Not quite sure how to fix that one. When I create a dummy cvxopt file
in the spkg/installed directory, though, the rest of the compilation
finishes, and SAGE seems to work fine.

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: remote mathematica, magma and so on

2007-08-14 Thread Jack Schmidt

You can just put a shell script in $SAGE_ROOT/local/bin/math (or
whatever the binary name is supposed to be) with the contents:

#!/bin/sh
exec ssh -t [EMAIL PROTECTED] math
$*

You need to setup some sort of password-less authentication from your
laptop to the mathematica server if you have not already.  There are
lots of simple ways to do this. Two easy and elementary ways are the
ControlMaster option or the program ssh-agent, as described in the man
pages for ssh_config and ssh-agent.

I don't have access to mathematica, but this works for gap, kash, and
magma.

On Aug 14, 4:48 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 i know about ssh tunneling and so on but i am posting this on sage-
 support...
 the point was to have a sage session on my laptop interacting with a
 remote mathematica (for instance)
 paul

 On Aug 14, 9:09 pm, Chris Chiasson [EMAIL PROTECTED] wrote:

  you can use mathematica remotely anyway
  method 1: remote kernel (don't know if mathplayer can be made to
  connect to one of these)
  method 2: ssh tunneling, possibly with x windows (this should work,
  but you will probably need to learn a lot to make it work)

  plain method:
  ssh and execute
  math
  to enter a mathematica terminal mode session (sans front end)

  On Aug 14, 12:40 pm, [EMAIL PROTECTED]

  [EMAIL PROTECTED] wrote:
   hi all
   i was wondering if anyone had already implemented this:
   my computing setup is not the greatest. i don't pay for mathematica or
   magma so i don't have them available on my laptop. on the other hand
   my university does pay for them, and i have a user account on the
   machines where they are run. but then those machines don't have a very
   current version of sage...
   so i was curious whether it would be possible to have sage run
   mathematica on a remote server and interact with it just as if it was
   also installed on my machine?
   thanks
   paul


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Cayley graphs in SAGE

2007-08-06 Thread Jack Schmidt

The gap.eval's can be removed like this:

C3 = CyclicPermutationGroup(3)._gap_()
C = C3.CayleyGraph(C3.GeneratorsOfGroup())
V = C.Vertices().Elements()
E = C.UndirectedEdges()
L = [[y[1] for y in [x for x in E if v in x] if y[1]!=v]+[y[2]
for y in [x for x in E if v in x] if y[2]!=v] for v in V]
d = dict(zip(V,L))
G = Graph(d)
show(G.plot())

GAP lists are indexed from 1, not 0, so I changed the line for L.
This was needed to get it to work on https://sage.math.washington.edu:8103/

On Aug 6, 7:46 am, David Joyner [EMAIL PROTECTED] wrote:
 Here is an example of constructing a Cayley graph in SAGE (this uses grape):

 sage: gap.eval(C := CayleyGraph(Group([(1,2,3)]),[(1,2,3)]))
 'rec( isGraph := true, order := 3, group := Group([ (1,2,3) ]), \n
 schreierVector := [ -1, 1, 1 ], adjacencies := [ [ 2, 3 ] ], \n
 representatives := [ 1 ], names := [ (), (1,2,3), (1,3,2) ], \n
 isSimple := true )'
 sage: V = eval(gap.eval(Elements(Vertices(C
 sage: E = eval(gap.eval(UndirectedEdges(C)))
 sage: L = [[y[0] for y in [x for x in E if v in x] if y[0]!=v]+[y[1]
 for y in [x for x in E if v in x] if y[1]!=v] for v in V]
 sage: d = dict(zip(V,L))
 sage: G = Graph(d)
 sage: show(G.plot())

 Question: Can anyone this of a simpler way to do this?

 - David Joyner


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Bug in combinatorics package

2007-06-30 Thread Jack Schmidt

In sage 2.6 on a 64bit AMD machine running debian I get:

sage: number_of_partitions(147007)-number_of_partitions_list(147007)
3

In SAGE's Pari/GP:
? numbpart(147007) % 1000
%1 = 536


On a 32bit ubuntu machine I get the majority answer (533) from
everyone: the vendor supplied Pari/GP, from SAGE, and from GAP.



On Jun 30, 5:29 pm, David Joyner [EMAIL PROTECTED] wrote:
 Thank you for you bug report. The function
 number_of_partitions is not in combinat, though it
 is mentioned there in the documentation. The combinat contains
 mostly GAP and Maxima wrappers. The number_of_partitions
 is actually contained in rings/arith.py and is a PARI
 wrapper.

 That said, the corresponding GAP function, number_of_partition_list,
 *is* wrapped in combinat.py and yields the same answer:

 sage: number_of_partitions_list(147007)-number_of_partitions(147007)
 0

 So, according to your calculation (I don't have Mma to check it),
 either Mma and Combinatorica are both wrong or
 GAP and Pari are both wrong.

 ++

 On 6/30/07, Jonathan Hseu [EMAIL PROTECTED] wrote:



  Here's an example to reproduce the bug (on Linux x86-64):

  from sage.combinat.combinat import *
  x=147007
  number_of_partitions(x)==mathematica('PartitionsP['+str(x)+']')
  False
  x=147006
  number_of_partitions(x)==mathematica('PartitionsP['+str(x)+']')
  True

  That's the exact point at which mathematica and sage disagree on the
  number of partitions.  I verified through another source that
  mathematica is correct (using Combinatorica... unless both turn out to
  be wrong).

  Thanks,
  Jonathan Hseu


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---