[sage-support] newbie: plot() questions

2010-03-17 Thread Nareto
Hello, I have to plot an exponential function with vertical asymptote
in point tc, but

plot(f(t), (tc  - e, tc + e));

gives me unreadable plots for any values of e - if e is to large the
curvature is not apreciable (i.e. the plot is confused with the axes)
but if it's too small I'm getting things like 4 on the y axis.

So, how can I force the y axis range? I tried this but it doesn't
change anything:

P = plot(f(t));
P.set_range_axes(tc - 0.2, tc + 0.2, f(tc - 0.2), f(tc + 0.2));
show(P);

Question #2, how can I tell sage not to 'break' the axes? for example,

plot(1/(x + 3));

doesn't show me the last bit of the y axis, it ends approximately at
0.25


thanks for any help
Renato

-- 
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: sage 4.3 compilation problem: NotImplementedError

2009-12-28 Thread Nareto
On Dec 28, 9:11 am, Tim Joseph Dumol t...@timdumol.com wrote:
 Yes, I do believe too. I had the exact same problem, and only figured it out
 a few days ago. By the way, -march obsoletes -mtune.

 CFLAGS=-march=core2 -O2 -pipe -mfpmath=sse

 would work better :)


thanks for that

-- 
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] which python does sage use?

2009-12-28 Thread Nareto
Hello, I'm new to both python and sage. I understand that there are
substantial differences between versions of python, so I'm asking, for
use in sage, which version should I learn?
Contributing to confusion is I have different versions of python
installed

Renato

-- 
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: sage 4.3 compilation problem: NotImplementedError

2009-12-27 Thread Nareto
wow, *thank you*! finally i built successfully.

I think this would be well worth mentioning in the documentation, as
on Gentoo and Arch (for example) CFLAGS and CXXFLAGS are set system
wide, and it's very common (and usually secure to) to have something
like

CFLAGS=-march=i686 -mtune=core2 -O2 -pipe
CXXFLAGS=${CFLAGS}


Renato


On Dec 27, 6:01 am, Tim Joseph Dumol t...@timdumol.com wrote:
 Hello,

 Sage must be compiled with -O1 or -O0, any higher causes hangs/problems.
 Hopefully that works for you.

 On Sun, Dec 27, 2009 at 5:46 AM, Renato renn...@gmail.com wrote:
  Hello, I'm trying to compile sage 4.3 but I'm not having success. The
  build completed but I'm getting errors when running ./sage:

  sage-4.3$ ./sage
  --
  | Sage Version 4.3, Release Date: 2009-12-24                         |
  | Type notebook() for the GUI, and license() for information.        |
  --
  ---
  NotImplementedError                       Traceback (most recent call
  last)

  /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/IPython/ipmaker.pyc
  in force_import(modname) 64         reload(sys.modules[modname])
      65     else:
  --- 66         __import__(modname)
      67
      68

  /home/renato/src/sage-matematica/src/sage-4.3/local/bin/ipy_profile_sage.py
  in module() 5     preparser(True)
       6
   7     import sage.all_cmdline
       8     sage.all_cmdline._init_cmdline(globals())
       9

  /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/all_cmdline.py
  in module() 12 try:
      13
  --- 14     from sage.all import *
      15     from sage.calculus.predefined import x
      16     preparser(on=True)

  /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/all.py
  in module() 70 get_sigs()
      71
  --- 72 from sage.rings.all      import *
      73 from sage.matrix.all     import *
      74

  /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/all.py
  in module() 92
      93 # Algebraic numbers

  --- 94 from qqbar import (AlgebraicRealField, is_AlgebraicRealField,
  AA, 95                    AlgebraicReal, is_AlgebraicReal,
      96                    AlgebraicField, is_AlgebraicField, QQbar,

  /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/qqbar.py
  in module() 1414 QQy = QQ['y']
    1415 QQy_y = QQy.gen()
  - 1416 QQxy = QQ['x', 'y']
    1417 QQxy_x = QQxy.gen(0)
    1418 QQxy_y = QQxy.gen(1)

  /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/ring.so
  in sage.rings.ring.Ring.__getitem__ (sage/rings/ring.c:2685)()

  /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_constructor.pyc
  in PolynomialRing(base_ring, arg1, arg2, sparse, order, names, name,
  implementation) 353             names = arg1 354             n =
  len(names) -- 355             R = _multi_variate(base_ring, names, n,
  sparse, order) 356
     357     if arg1 is None and arg2 is None:

  /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_constructor.pyc
  in _multi_variate(base_ring, names, n, sparse, order) 451
  return R 452
  -- 453     from sage.rings.polynomial.multi_polynomial_libsingular
  import MPolynomialRing_libsingular 454     if
  m.integral_domain.is_IntegralDomain(base_ring): 455         if n  1:

  /home/renato/src/sage-matematica/src/sage-4.3/local/bin/multi_polynomial_libsingular.pyx
  in init sage.rings.polynomial.multi_polynomial_libsingular
  (sage/rings/polynomial/multi_polynomial_libsingular.cpp:29460)()

  /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/libs/singular/__init__.py
  in module() 6
       7 ## We predefine a couple of often used functions here to avoid
  the fetch overhead ##

   8 groebner = singular_function('groebner')
       9
      10

  /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/libs/singular/function.so
  in sage.libs.singular.function.singular_function
  (sage/libs/singular/function.cpp:11103)()

  /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/libs/singular/function.so
  in sage.libs.singular.function.SingularKernelFunction.__init__
  (sage/libs/singular/function.cpp:10853)()

  /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/libs/singular/function.so
  in sage.libs.singular.function.SingularFunction.get_call_handler
  (sage/libs/singular/function.cpp:9141)()

  NotImplementedError:
  Error importing ipy_profile_sage - perhaps you should run %upgrade?
  WARNING: Loading 

[sage-support] Re: sage 4.3 compilation problem: NotImplementedError

2009-12-26 Thread Nareto
anyhow I uploaded the full install.log here:
http://www.mediafire.com/?om2o0ohdnzk

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