Re: [sage-support] 9.0 to 9.2 Ubuntu Linux Upgrade Error

2020-11-15 Thread Surendran Karippadath
Downloaded 9.2 binary and got the build working.

Thank you all.

On Fri, Nov 6, 2020 at 6:52 PM Dima Pasechnik  wrote:

> On Fri, Nov 6, 2020 at 7:23 AM Dima Pasechnik  wrote:
> >
> > Download 9.2 and build, please.
> >
> > (-upgrade option is obsolete, should be removed)
>
> opened https://trac.sagemath.org/ticket/30866
> to fix this
> >
> >
> > On Fri, 6 Nov 2020, 06:12 Surendran Karippadath, 
> wrote:
> >>
> >> $ sage -upgrade 9.2
> >> 
> >> must source sage-env-config before sage-env
> >> Error setting environment variables by sourcing
> '/usr/local/SageMath/9.0/SageMath/src/bin/sage-env';
> >> possibly contact sage-devel (see
> http://groups.google.com/group/sage-devel).
> >>
> >> All the 1308 packages have been built. But the build appears broken.
> Should I download version 9.2 tar file and build ?
> >>
> >> Thanks for your attention.
> >>
> >> --
> >> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CAGp5ChWaPkW%3DYsdREUGz2qZY8ceDOb_7u0tA-LrVJX6Wm_wzOg%40mail.gmail.com
> .
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CAAWYfq2Bukwjv5WpVAKxypYQE7_4yd1x3ku%2BN1Npkhe%3DxV2aUQ%40mail.gmail.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAGp5ChV1Vt2AhcpNJrkaYAyVk3h%3Dou8S8bMdbUUgrx8ES9CDxw%40mail.gmail.com.


[sage-support] 9.0 to 9.2 Ubuntu Linux Upgrade Error

2020-11-05 Thread Surendran Karippadath
$ sage -upgrade 9.2

must source sage-env-config before sage-env
Error setting environment variables by sourcing
'/usr/local/SageMath/9.0/SageMath/src/bin/sage-env';
possibly contact sage-devel (see http://groups.google.com/group/sage-devel).

All the 1308 packages have been built. But the build appears broken. Should
I download version 9.2 tar file and build ?

Thanks for your attention.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAGp5ChWaPkW%3DYsdREUGz2qZY8ceDOb_7u0tA-LrVJX6Wm_wzOg%40mail.gmail.com.


Re: [sage-support] gp in Sage

2020-09-02 Thread Surendran Karippadath
Thank you all for the temporary solution to my problem arising from an
ambitious effort to understand Table 12.12 in David Cox's book Primes of
the form x^2+ny^2. As Prof Cremona has stated the existence of *only* four
perfect cubes on the imaginary axis is  to be discussed under an
appropriate topic head.

Sincerely

On Thu, Sep 3, 2020 at 1:16 AM John Cremona  wrote:

>
>
> On Wednesday, September 2, 2020 at 5:00:07 PM UTC+1 kks wrote:
>
>> Yes, I knew the point regarding
>> >>
>> ndeed, there are 9 imaginary quadratic extensions of Q for which one
>> gets integer j-invariant, one of them
>> Q[sqrt(-163)], but as 163 mod 4 = 3, one has to compute its j-invariant as
>> ellj((1+sqrt(163)*I)/2)
>> getting -262537412640768000
>> <<
>> However on the boundary of the fundamental domain, my calculation shows
>> only j-invariants ( positive) which are perfect cubes as
>> Q(sqrt(-1)).12^3
>> Q(sqrt(-2))..20^3
>> Q(sqrt(-4))..66^3
>> Q(sqrt(-7))..255^3
>> and the above almost integer. Are there any others on the Imaginary axis?
>>
>
> No. cm_j_invariants_and_orders(QQ) gives all 13 imaginry quadratic orders
> of class number 1, from which you can recover the 13 associated imaginary
> discriminants D.  Most of these are congruent to 1 mod 4 so the j-value is
> j((1+sqrt(d))/2) , only those which are 0 mod 4 are on the imaginary axis
> with values j(sqrt(D)/2) as in your list.
>
> THere is a big theory of complex multiplcation behind these facts, but I
> don'y think that "gp in Sage" is an accurate sub   ject
> line for discussion about that.
>
> John Cremona
>
>
>
>>
>>
>> On Mon, Aug 31, 2020 at 2:28 AM Dima Pasechnik  wrote:
>>
>>> On Sun, Aug 30, 2020 at 9:24 AM Dima Pasechnik  wrote:
>>> >
>>> > On Sun, Aug 30, 2020 at 5:50 AM Surendran Karippadath
>>> >  wrote:
>>> > >  I evaluated the j-invariant in Pari/gp In SageMathCell
>>> > > ? \p 50
>>> > > ? ellj(sqrt(163.0)*I)
>>> > > %1 = 68925893036109279891085639286944512.0163739
>>> >
>>> > Sage has this function too (it calls Pari, so that's not an
>>> > independent confirmation that this number is (not) an integer:
>>> > sage: elliptic_j(sqrt(163)*I,prec=500)
>>> >
>>> 6.892589303610927989108563928694451201637386442092346075751855217523117650690239250072955532985645916831850173541132959651401661828116253839333e34
>>> >
>>> > The output in Pari is a bit easier to read:
>>> >
>>> > ? \p 500
>>> > ? ellj(sqrt(163)*I)
>>> > %4 =
>>> 68925893036109279891085639286944512.016373864420923460757518552[...]
>>> >
>>> > Is it one of these "almost integers" (unless it's a bug, and this
>>> > number must be an integer, I don't know  - number theorists, please
>>> > step forward!), such as
>>> > ? \p 500
>>> > ? exp(sqrt(163)*Pi)
>>> > %3 =
>>> 262537412640768743.25007259719818568887935385633733699086270[...]
>>> >
>>> > Or a bug in Pari/GP ?
>>>
>>> If I read the discussion  after Cor. 42 in
>>> http://people.maths.ox.ac.uk/greenbj/papers/ramanujanconstant.pdf
>>> right, this is not an integer.
>>> Indeed, there are 9 imaginary quadratic extensions of Q for which one
>>> gets integer j-invariant, one of them
>>> Q[sqrt(-163)], but as 163 mod 4 = 3, one has to compute its j-invariant
>>> as
>>> ellj((1+sqrt(163)*I)/2)
>>> getting -262537412640768000
>>>
>>>
>>> >
>>> >
>>> > >
>>> > > Furthermore the Cube-root of the j-invariant I obtained
>>> > > ? (ellj(sqrt(163.0)*I))^(1/3)
>>> > > %2 = 410009702400.00077461269365317226812447191214259043
>>> >
>>> > the closest integer to (ellj(sqrt(163.0)*I))^(1/3) is 410009702400,
>>> > and so you can check
>>> > that its cube is quite far from ellj(sqrt(163)*I)
>>> >
>>> >
>>> >
>>> > >
>>> > > Is it possible to check in Sage with High Precision if the values
>>> are Integers.
>>> > >
>>> > > Thanking you in advance
>>> > >
>>> > > --
>>> > > You received this message because you are subscribed to the Google
>>> Groups "sage-support" group.
>>> > > To

Re: [sage-support] gp in Sage

2020-09-02 Thread Surendran Karippadath
Yes, I knew the point regarding
>>
ndeed, there are 9 imaginary quadratic extensions of Q for which one
gets integer j-invariant, one of them
Q[sqrt(-163)], but as 163 mod 4 = 3, one has to compute its j-invariant as
ellj((1+sqrt(163)*I)/2)
getting -262537412640768000
<<
However on the boundary of the fundamental domain, my calculation shows
only j-invariants ( positive) which are perfect cubes as
Q(sqrt(-1)).12^3
Q(sqrt(-2))..20^3
Q(sqrt(-4))..66^3
Q(sqrt(-7))..255^3
and the above almost integer. Are there any others on the Imaginary axis?


On Mon, Aug 31, 2020 at 2:28 AM Dima Pasechnik  wrote:

> On Sun, Aug 30, 2020 at 9:24 AM Dima Pasechnik  wrote:
> >
> > On Sun, Aug 30, 2020 at 5:50 AM Surendran Karippadath
> >  wrote:
> > >  I evaluated the j-invariant in Pari/gp In SageMathCell
> > > ? \p 50
> > > ? ellj(sqrt(163.0)*I)
> > > %1 = 68925893036109279891085639286944512.0163739
> >
> > Sage has this function too (it calls Pari, so that's not an
> > independent confirmation that this number is (not) an integer:
> > sage: elliptic_j(sqrt(163)*I,prec=500)
> >
> 6.892589303610927989108563928694451201637386442092346075751855217523117650690239250072955532985645916831850173541132959651401661828116253839333e34
> >
> > The output in Pari is a bit easier to read:
> >
> > ? \p 500
> > ? ellj(sqrt(163)*I)
> > %4 =
> 68925893036109279891085639286944512.016373864420923460757518552[...]
> >
> > Is it one of these "almost integers" (unless it's a bug, and this
> > number must be an integer, I don't know  - number theorists, please
> > step forward!), such as
> > ? \p 500
> > ? exp(sqrt(163)*Pi)
> > %3 =
> 262537412640768743.25007259719818568887935385633733699086270[...]
> >
> > Or a bug in Pari/GP ?
>
> If I read the discussion  after Cor. 42 in
> http://people.maths.ox.ac.uk/greenbj/papers/ramanujanconstant.pdf
> right, this is not an integer.
> Indeed, there are 9 imaginary quadratic extensions of Q for which one
> gets integer j-invariant, one of them
> Q[sqrt(-163)], but as 163 mod 4 = 3, one has to compute its j-invariant as
> ellj((1+sqrt(163)*I)/2)
> getting -262537412640768000
>
>
> >
> >
> > >
> > > Furthermore the Cube-root of the j-invariant I obtained
> > > ? (ellj(sqrt(163.0)*I))^(1/3)
> > > %2 = 410009702400.00077461269365317226812447191214259043
> >
> > the closest integer to (ellj(sqrt(163.0)*I))^(1/3) is 410009702400,
> > and so you can check
> > that its cube is quite far from ellj(sqrt(163)*I)
> >
> >
> >
> > >
> > > Is it possible to check in Sage with High Precision if the values are
> Integers.
> > >
> > > Thanking you in advance
> > >
> > > --
> > > 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CAGp5ChV21gzwieMCGvywDMxETh3ZUOuOpHaSGUbPNhNHvbVOpg%40mail.gmail.com
> .
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CAAWYfq0kox%3DLYaemNbNdXcDNHKDMxwFaYq9VKASHDoaa1bjZ%3Dg%40mail.gmail.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAGp5ChW04OyTdsVyP8Pnv_qgdcMVoWSqMtCUPR-d%3D2fwF0_9eA%40mail.gmail.com.


[sage-support] gp in Sage

2020-08-29 Thread Surendran Karippadath
Hi,

 I evaluated the j-invariant in Pari/gp In SageMathCell
? \p 50
? ellj(sqrt(163.0)*I)
%1 = 68925893036109279891085639286944512.0163739

Furthermore the Cube-root of the j-invariant I obtained
? (ellj(sqrt(163.0)*I))^(1/3)
%2 = 410009702400.00077461269365317226812447191214259043

Is it possible to check in Sage with High Precision if the values are
Integers.

Thanking you in advance

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAGp5ChV21gzwieMCGvywDMxETh3ZUOuOpHaSGUbPNhNHvbVOpg%40mail.gmail.com.


Re: [sage-support] How to start

2019-03-15 Thread Surendran Karippadath
Search for a name 'sage' in your machine. The results will most -probably
tell what you should do to start running sage.

Regards
kksinfinity

On Fri, Mar 15, 2019 at 5:29 PM Jan Groenewald  wrote:

> Hi
>
> On Fri, 15 Mar 2019 at 13:55, Deepak Pawar 
> wrote:
>
>> I already had installed the sage in my machine.
>>
>> Don't know how to open it
>>
>
> It depends on the operating system and how you installed sage.
>
> Regards,
> Jan
>
>
> --
>   .~.
>   /V\ Jan Groenewald
>  /( )\www.aims.ac.za
>  ^^-^^
>
> --
> 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.
>

-- 
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] Sage Crash Report

2013-02-08 Thread Surendran Karippadath
Oops, Sage crashed. We do our best to make it stable, but...

A crash report was automatically generated with the following information:
  - A verbatim copy of the crash traceback.
  - A copy of your input history during this session.
  - Data on your current Sage configuration.

It was left in the file named:
'/home/surendran/.sage/ipython/Sage_crash_report.txt'
If you can email this file to the developers, the information in it will
help
them in understanding and correcting the problem.

You can mail it to: sage-support at sage-support@googlegroups.com
with the subject 'Sage Crash Report'.

If you want to do it now, the following command will work (under Unix):
mail -s 'Sage Crash Report' sage-support@googlegroups.com <
/home/surendran/.sage/ipython/Sage_crash_report.txt

To ensure accurate tracking of this issue, please file a report about it at:
http://trac.sagemath.org/sage_trac

Regards

Surendran

-- 
247/3/1 Sadafuli Park, Off DP Road, Baner, Pune 411007
Aadhar : 9559 4359 7055
Phone  :+91-20-27298293

-- 
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.


***

IPython post-mortem report

IPython version: 0.10.2 

Platform info  : os.name -> posix, sys.platform -> linux2

***

Current user configuration structure:

{'Version': 0,
 '__allownew': True,
 'alias': [],
 'args': [],
 'autocall': 0,
 'autoedit_syntax': 0,
 'autoexec': [],
 'autoindent': 1,
 'automagic': 1,
 'banner': 0,
 'c': '',
 'cache_size': 1000,
 'classic': 0,
 'color_info': 1,
 'colors': 'NoColor',
 'confirm_exit': 0,
 'debug': 0,
 'deep_reload': 0,
 'editor': 'vi',
 'embedded': False,
 'execfile': [],
 'execute': ['',
 "def view_all(): view([(i, globals()[i]) for i in variables()], 
title='All SAGE Variables')",
 "def variables(): return [k for k in globals() if not k in iglob 
and len(k) > 0 and k[0] != '_']",
 'import sage.misc.preparser_ipython;  
sage.misc.preparser_ipython.magma_colon_equals=True'],
 'gthread': 0,
 'help': 0,
 'import_all': [],
 'import_mod': [],
 'import_some': [[]],
 'include': [],
 'interact': 1,
 'ipythondir': u'/home/surendran/.sage/ipython',
 'log': 0,
 'logfile': '',
 'logplay': '',
 'magic_docstrings': 0,
 'messages': 1,
 'multi_line_specials': 1,
 'nosep': 0,
 'object_info_string_level': 0,
 'opts': Struct({'__allownew': True, 'interact': 1, 'profile': ''}),
 'pdb': 0,
 'pprint': 1,
 'profile': '',
 'prompt_in1': '${sage_prompt()}: ',
 'prompt_in2': "${'.'*len(sage_prompt())}: ",
 'prompt_out': '',
 'prompts_pad_left': 0,
 'pydb': 0,
 'pylab': 0,
 'pylab_import_all': 1,
 'q4thread': 0,
 'qthread': 0,
 'quick': 0,
 'quiet': 0,
 'rcfile': 'ipythonrc',
 'readline': 1,
 'readline_merge_completions': 1,
 'readline_omit__names': 2,
 'readline_parse_and_bind': ['tab: complete',
 '"\\C-l": possible-completions',
 'set show-all-if-ambiguous on',
 '"\\C-o": tab-insert',
 '"\\M-i": ""',
 '"\\M-o": "\\d\\d\\d\\d"',
 '"\\M-I": "\\d\\d\\d\\d"',
 '"\\C-r": reverse-search-history',
 '"\\C-s": forward-search-history',
 '"\\C-p": history-search-backward',
 '"\\C-n": history-search-forward',
 '"\\e[A": history-search-backward',
 '"\\e[B": history-search-forward',
 '"\\C-k": kill-line',
 '"\\C-u": unix-line-discard'],
 'readline_remove_delims': '-/~',
 'screen_length': -1,
 'separate_in': '',
 'separate_out': '',
 'separate_out2': '',
 'system_header': 'IPython system call: ',
 'system_verbose': 0,
 'term_title': 1,
 'tk': 0,
 'upgrade': 0,
 'wildcards_case_sensitive': 1,
 'wthread': 0,
 'wxversion': '0',
 'xmode': 'Context'}

***

Crash traceback:

---
OSErrorPython 2.7.3: /usr/local/sage56/local/bin/python
   Sat Feb  9 01:04:08 2013
A problem occured executing Python code.  Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.

/usr/local/sage56/local/lib/python/atexit.pyc in _run_exitfuncs()
  9 
 10 import

Re: [sage-support] Re: Installing the Binary on Ubuntu

2012-08-23 Thread Surendran Karippadath
Hello Cogito,

>Errors occur.  Then I realized I needed to do a "sudo apt-get install
sagemath" in >the directory, but now it cant find the sagemath package.  Im
at a loss for how to >get anything to work here.

As you have not mentioned you have successfully run sage I am just adding
some advice. If you have already done it please ignore.
As you have downloaded the binary for Ubuntu it will be a file ending in
.lzma or .gz, say,
*sage-5.2-linux-32bit-ubuntu_12.04_lts-i686-Linux.tar.lzma*

After you have extracted the contents of the archive by right clicking the
filename and choosing "extract" or on the command-line using:

$ sudo mv 
*sagetar.lzma*/usr/local
moving the file to /usr/local
$ cd /usr/local
.being in that
direcory
$sudo  tar --lzma -xvf
sage...tar.lzma...unarchiving the file
$cd
sage-5.2...moving
to /usr/local/sage-5.2
$./sageRunning
sage
$./sage
-nRun
Sage in a browser

It is possible that you can skip the 4th cmd and run the 5th/6th without
the starting ./
I hope you have started using SAGE
Cheers.
On Mon, Aug 20, 2012 at 11:30 AM, Jan Groenewald  wrote:

> Hi
>
> On 20 August 2012 11:07, Keshav Kini  wrote:
>
>> No, apt-get is for installing packages from the official Ubuntu package
>> servers. Sage is not there. If you want to use apt-get for Sage, you
>> could use Jan Groenewald's PPA (Personal Package Archive) where he has
>> put a version of Sage. How to use it, I don't know, since I don't use
>> Ubuntu - but you can probably google for how to use PPAs in Ubuntu.
>>
>
> sudo apt-add-repository -y ppa:aims/sagemath
>  sudo apt-get update
> sudo apt-get install sagemath-upstream-binary # downloads 400M, unpacks
> 1.6G
>
> Regards,
> Jan
>
> --
>   .~.
>   /V\ Jan Groenewald
>  /( )\www.aims.ac.za
>  ^^-^^
>
>  --
> --
> 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
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
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.
Visit this group at http://groups.google.com/group/sage-support?hl=en.




[sage-support] Re: Polynomial input as product of factors without * between them

2011-03-26 Thread Surendran Karippadath
The Deprecation warning was absent  in 4.3.3 but is there in 4.6.2. Does
this mean consecutive brackets are treated as Lamda expressions scoping to
the right?

Like:
sage : y=1/((x-1)(x-3)(x-5))
sage : y
 1/(x-9)

sage : y=1/((x-1)(x-3)(x^2-5))
sage : y
 1/(x^2-9)

sage : y=1/((x-1)(x-3)(x^2-5)(x^3-1))
sage : y
1/((x^3-1)^2-9)

I did not find this mentioned in the docs. May be it is there.

Thanks.
On Sat, Mar 26, 2011 at 12:52 AM, John H Palmieri wrote:

>
>
> On Friday, March 25, 2011 9:35:13 PM UTC-7, Surendran Karippadath wrote:
>>
>> If the multiplication sign * is absent ( say by mistake!) what is SAGE
>> evaluating?
>> For example:
>> x=var('x');f=1/((x-1)(x-3));
>> f.limit(x=1) returns -1/3
>> diff(f,x) returns -1/(x - 4)^2
>> plot(f,(x,0,10)) plots a smooth curve going through -1/3.
>>
>> It is clear it is evaluating f =1/(x-4). How? Why is not pointing to
>> the possible error?
>>
>
> I think it's taking the expression (x-1), treating it as a symbolic
> expression, and plugging in (x-3) for x, thus obtaining (x-3-1) = (x-4).
> Actually, here's what happens when I do this:
>
> sage: x=var('x');f=1/((x-1)(x-3));
> /Applications/sage/local/lib/python2.6/site-packages/IPython/iplib.py:2073:
> DeprecationWarning: Substitution using function-call syntax and unnamed
> arguments is deprecated and will be removed from a future release of Sage;
> you can use named arguments instead, like EXPR(x=..., y=...)
>   exec code_obj in self.user_global_ns, self.user_ns
> sage: f
> 1/(x - 4)
>
> If you didn't see the warning, what version of Sage are you using?
>
> --
> John
>
>

-- 
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] Polynomial input as product of factors without * between them

2011-03-25 Thread Surendran Karippadath
If the multiplication sign * is absent ( say by mistake!) what is SAGE
evaluating?
For example:
x=var('x');f=1/((x-1)(x-3));
f.limit(x=1) returns -1/3
diff(f,x) returns -1/(x - 4)^2
plot(f,(x,0,10)) plots a smooth curve going through -1/3.

It is clear it is evaluating f =1/(x-4). How? Why is not pointing to
the possible error?

Of course with
x=var('x');f=1/((x-1)*(x-3));
diff(f,x) returns -1/((x - 3)*(x - 1)^2) - 1/((x - 3)^2*(x - 1))
f.limit(x=1) returns +Infinity etc.

-- 
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] No wiki in compiled sage

2009-11-26 Thread Surendran Karippadath
Hello,

I am compiling sage ( 4.1.2 and 4.2.1 on 32bit Debian Stable gcc-4.3.2
and 4.2.6)  I find the wiki()  function at the sage: prompt raises
error and no wiki -page appears. The result is the following--

sage: wiki()

/home/angeli/sage-4.1.2/local/lib/python2.6/site-packages/MoinMoin/
user.py:9: DeprecationWarning: the sha module is deprecated; use the
hashlib module instead
  import os, time, sha, codecs
/home/angeli/sage-4.1.2/local/lib/python2.6/site-packages/twisted/
persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated;
use hashlib instead
  import os, md5, sys
/home/angeli/sage-4.1.2/local/lib/python2.6/site-packages/MoinMoin/
user.py:9: DeprecationWarning: the sha module is deprecated; use the
hashlib module instead
  import os, time, sha, codecs
2009-11-19 17:27:03+0530 [-] Log opened.
2009-11-19 17:27:03+0530 [-] twistd 8.2.0 (/home/angeli/sage-4.1.2/
local/bin/python 2.6.2) starting up.
2009-11-19 17:27:03+0530 [-] reactor class:
twisted.internet.selectreactor.SelectReactor.
2009-11-19 17:27:03+0530 [-] MoinMoin.server.twistedmoin.MoinSite
starting on 9000
2009-11-19 17:27:03+0530 [-] Starting factory

2009-11-19 17:27:04+0530 [-] set uid/gid 1000/1000
2009-11-19 17:28:09+0530 [HTTPChannel,0,127.0.0.1] /home/angeli/
sage-4.1.2/local/lib/python2.6/site-packages/MoinMoin/request.py:1485:
exceptions.DeprecationWarning: IPv4Address.__getitem__ is deprecated.
Use attributes instead.

2009-11-19 17:28:13+0530 [HTTPChannel,0,127.0.0.1] [Thu Nov 19
17:28:13 2009] ValueError: Cannot process flags argument with a
compiled pattern

2009-11-19 17:28:13+0530 [-] 127.0.0.1 - - [19/Nov/2009:11:58:13
+] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; U; Linux i686;
en; rv:1.9.0.15) Gecko/20080528 Epiphany/2.22"

I have never experienced this problem with linux binaries. What is
possibly the problem - python2.6?

I must record the wonderful experience of watching SAGE compiling for
6 to 8 hours.

All the best.

-- 
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


Re: [sage-support] problem with sage -upgrade

2009-11-20 Thread Surendran Karippadath
In the context of compiling sage from source ( 4.1.2 and 4.2.1 on 32bit
Debian Stable gcc-4.3.2 and 4.2.6) I find the wiki()  function at the sage:
prompt raises error and no wiki -page appears.

sage: wiki()
/home/angeli/sage-4.1.2/local/lib/python2.6/site-packages/MoinMoin/user.py:9:
DeprecationWarning: the sha module is deprecated; use the hashlib module
instead
  import os, time, sha, codecs
/home/angeli/sage-4.1.2/local/lib/python2.6/site-packages/twisted/persisted/sob.py:12:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, sys
/home/angeli/sage-4.1.2/local/lib/python2.6/site-packages/MoinMoin/user.py:9:
DeprecationWarning: the sha module is deprecated; use the hashlib module
instead
  import os, time, sha, codecs
2009-11-19 17:27:03+0530 [-] Log opened.
2009-11-19 17:27:03+0530 [-] twistd 8.2.0
(/home/angeli/sage-4.1.2/local/bin/python 2.6.2) starting up.
2009-11-19 17:27:03+0530 [-] reactor class:
twisted.internet.selectreactor.SelectReactor.
2009-11-19 17:27:03+0530 [-] MoinMoin.server.twistedmoin.MoinSite starting
on 9000
2009-11-19 17:27:03+0530 [-] Starting factory

2009-11-19 17:27:04+0530 [-] set uid/gid 1000/1000
2009-11-19 17:28:09+0530 [HTTPChannel,0,127.0.0.1]
/home/angeli/sage-4.1.2/local/lib/python2.6/site-packages/MoinMoin/request.py:1485:
exceptions.DeprecationWarning: IPv4Address.__getitem__ is deprecated.  Use
attributes instead.
2009-11-19 17:28:13+0530 [HTTPChannel,0,127.0.0.1] [Thu Nov 19 17:28:13
2009] ValueError: *Cannot process flags argument with a compiled pattern*
2009-11-19 17:28:13+0530 [-] 127.0.0.1 - - [19/Nov/2009:11:58:13 +] "GET
/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; U; Linux i686; en; rv:1.9.0.15)
Gecko/20080528 Epiphany/2.22"

I could not find anything on this in the list. I am just hoping that folks
who compiled 4.2 would have experienced the same problem. What can I try ?

Thank you all very much.


On Fri, Nov 20, 2009 at 3:31 PM, William Stein  wrote:

> On Fri, Nov 20, 2009 at 1:58 AM, Stan Schymanski 
> wrote:
> > Did the upgrade still work for you?
> > Mine ended normally, but if I start the notebook and want to do
> > something, I get the message that maxima could not be started. I'll have
> > to compile from source (again).
>
> Try forcing rebuilding of the maxima spkg.
>
>  sage -f maxima-5.19.1.p0
>
> William
>
>
> > Cheers
> > Stan
> >
> > Minh Nguyen wrote:
> >> Hi Stan,
> >>
> >> On Thu, Nov 19, 2009 at 9:31 PM, Stan Schymanski 
> wrote:
> >>
> >>> Dear all,
> >>>
> >>> I compiled sage 4.2 from source on my Macbook Pro with OSX 10.4.11 and
> >>> when I tried sage -upgrade, I was asked to enter a commit message. I
> >>> aborted (by typing :q) and the upgrade is continuing now, but this
> >>> does not seem normal. Did anyone else experience something similar?
> >>>
> >>
> >> Yes. I was asked to enter a commit message because the README file has
> >> changed. I suspect that the executable bits have changed. The README
> >> file should have no executable bits.
> >>
> >>
> >
> > --
> > 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
> Associate Professor of Mathematics
> University of Washington
> http://wstein.org
>
> --
> 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
>

-- 
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