[sage-support] Bug in show() function?

2011-04-27 Thread Dmitry Shkirmanov
Hello, list, look please at the worksheet  http://alpha.sagenb.org/home/pub/121/
It seems that the output of show(bb) is wrong, there is spurious
factor 1/4  in the second term.



In this worksheet in  first cell i typed:

reset()
forget()
 var("r,ksi,a3,A")
 aa=-r^2*(ksi+a3)+I*sqrt(A)*r
bb=-(ksi+a3)*(r-I*sqrt(A)/(2*(ksi+a3)))^2 + (ksi+a3)*(I*sqrt(A)/(2*(ksi
+a3)))^2

In second cell i typed print(bb), it gave:
-1/4*(2*r - I*sqrt(A)/(a3 + ksi))^2*(a3 + ksi) - 1/4*A/(a3 + ksi)
After it i copied this ouput and  pasted it in the show() function,
like this:
show(-1/4*(2*r - I*sqrt(A)/(a3 + ksi))^2*(a3 + ksi) - 1/4*A/(a3 +
ksi))
Outputs of
show(-1/4*(2*r - I*sqrt(A)/(a3 + ksi))^2*(a3 + ksi) - 1/4*A/(a3 +
ksi))
and
show(bb)
are different.

P.S. sorry for my rough english

-- 
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: Are there people using today any of the three recommended solutions for Windows on the sage site?

2011-04-27 Thread ancienthart
I've just joined sage-trac-account, requested an account and will post a new 
ticket once I have approval.

As for trellis/lattice packages, this highlights what could be a big problem 
with R, as there are literally thousands of different packages, a good few 
that create plots. If we create a list of pre-approved methods, this risks 
leaving a lot out. (There's some cool kriging stuff I'd like this wrapper to 
support.)

I was considering (for my first code-bash this weekend) ignoring loading, 
and storing *any* non-defined method call to this object and attempting to 
run it in R. It's not secure, but would have the benefit of ensuring that 
any loaded graphic function would run successfully as a method. 
If it's necessary that we have a list of well-defined methods to the 
Rgraphic object, would we be able to escape it using an extra check=False 
argument to the __init__ method.

So a typical session with my object would look like:

R.library("a graphics library")
R.library("another graphics library")

graph1 = Rgraphic(., check=False)
graph1.boxplot(...)
graph1.someotherRfunction(..)
graph1.somethingelse(..)
show(graph1)

Still have to sort out how to store the image though. :(

Joal Heagney


-- 
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 not showing any output

2011-04-27 Thread tintin


On 11 Tháng Tư, 16:42, trust god 
wrote:
> but after that i am not getting any output in sage output,even not an

  What do you see on the screen ? F.e. 'Sage-notebook' , ...
  BTW, have you read or downloaded  the readme-file  at *Sage-site* ?


-- 
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: Bug in show() function?

2011-04-27 Thread Keshav Kini
Hi,

Not sure what's going on, but it seems that alpha.sagenb.org is actually 
currently at an older version than normal sagenb.org , just for your 
information...

-Keshav

-- 
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: installing and working with sage packages

2011-04-27 Thread tintin

On 20 Tháng Tư, 15:23, kuhn  wrote:
> I  still don't know if I'm working online or "chez moi", or if I can
> transfer files from Windows to
> wmware
>
> Is there somewhere  where I  could find quickly  this elementary
> stuff?

  Yes, look at

http://www.howtogeek.com/howto/ubuntu/how-to-share-folders-with-your-ubuntu-virtual-machine-guest/

or search for 'vmware shared folder' on web

  Tip: 1. Also search for 'ubuntu nautilus' .

   2. You can use f.e. Win-Notepad to edit  short .sage-files
 but must be careful about encoding when saving
 and should put   '#'  as the last char in the file
 (I mean no  newlineafter it).

   3. Here is an example of attach :
 In *Win*, write in a Sage-Notebook cell :
 attach "/mnt/hgfs/my_shared_folder/aa.sage"

 aa.sage  is a Win-file.
 my_shared_folder  is the name you gave to
   the VMWare add-shared-folder wizard.

 Now, click inside the cell and 'evaluate' appears below
   the cell, click it to get the file executed.
 Edit the file again and repeat the clicking above.
 For some reason, the file may be executed twice.

   4. You should also read

https://groups.google.com/group/sage-support/browse_thread/thread/9410295b66d28693?hl=vi

-- 
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: Are there people using today any of the three recommended solutions for Windows on the sage site?

2011-04-27 Thread kcrisman


On Apr 27, 5:29 am, ancienthart  wrote:
> I've just joined sage-trac-account, requested an account and will post a new
> ticket once I have approval.
>
> As for trellis/lattice packages, this highlights what could be a big problem
> with R, as there are literally thousands of different packages, a good few
> that create plots. If we create a list of pre-approved methods, this risks
> leaving a lot out. (There's some cool kriging stuff I'd like this wrapper to
> support.)

Very true.  And of course we can't assume anyone in general will have
these installed, so neither could we require them.

> I was considering (for my first code-bash this weekend) ignoring loading,
> and storing *any* non-defined method call to this object and attempting to
> run it in R. It's not secure, but would have the benefit of ensuring that
> any loaded graphic function would run successfully as a method.
> If it's necessary that we have a list of well-defined methods to the
> Rgraphic object, would we be able to escape it using an extra check=False
> argument to the __init__ method.

That is a good idea - I mean the first one, though the second one is
worth thinking about too.

> So a typical session with my object would look like:
>
> R.library("a graphics library")
> R.library("another graphics library")
>
> graph1 = Rgraphic(., check=False)
> graph1.boxplot(...)
> graph1.someotherRfunction(..)
> graph1.somethingelse(..)
> show(graph1)
>
> Still have to sort out how to store the image though. :(

There *is* a ticket for that open :)

Let's move this discussion to the ticket you open, once you open it,
though.

-- 
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] Difficulties with Sage installation on ubuntu 10.04 lts

2011-04-27 Thread jean-pierre.peigneux
Ok I tried without success ,below there is the ouput of the try,could
you make other suggestions,thanks:

sage -f mpir atlas
Force installing mpir atlas
Calling sage-spkg on mpir
Warning: Attempted to overwrite SAGE_ROOT environment variable
mpir
Machine:
Linux peigneux-desktop 2.6.32-31-generic #61-Ubuntu SMP Fri Apr 8
18:24:35 UTC 2011 i686 GNU/Linux
Deleting directories from past builds of previous/current versions of
mpir
Extracting
package 
/home/peigneux/Bureau/Sage/sage-4.6.2-linux-32bit-ubuntu_10.04_lts-i686-Linux-i686-Linux/spkg/standard/mpir-1.2.2.p2.spkg
 ...
-rw-r--r-- 1 peigneux peigneux 107 2011-03-04
14:20 
/home/peigneux/Bureau/Sage/sage-4.6.2-linux-32bit-ubuntu_10.04_lts-i686-Linux-i686-Linux/spkg/standard/mpir-1.2.2.p2.spkg
tar: Ceci ne ressemble pas à une archive de type « tar »
tar: Arrêt avec code d'échec à cause des erreurs précédentes
Finished extraction
sage: After decompressing the directory mpir does not exist
This means that the corresponding .spkg needs to be downloaded
again.
Searching for latest version of mpir
Found package mpir-1.2.2.p2
http://www.sagemath.org//packages/optional/mpir-1.2.2.p2.spkg -->
mpir-1.2.2.p2.spkg
[ ]
http://www.sagemath.org//packages/standard/mpir-1.2.2.p2.spkg -->
mpir-1.2.2.p2.spkg
[..]
/home/peigneux/Bureau/Sage/sage-4.6.2-linux-32bit-ubuntu_10.04_lts-i686-Linux-i686-Linux/spkg/build

Host system
uname -a:
Linux peigneux-desktop 2.6.32-31-generic #61-Ubuntu SMP Fri Apr 8
18:24:35 UTC 2011 i686 GNU/Linux


CC Version
gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --enable-multiarch --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4
--program-suffix=-4.4 --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-plugin --enable-objc-gc
--enable-targets=all --disable-werror --with-arch-32=i486
--with-tune=generic --enable-checking=release --build=i486-linux-gnu
--host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) 

checking build system type... k7-pc-linux-gnu
checking host system type... k7-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles...
no
checking ABI=32
checking compiler gcc -m32 -O2 -fomit-frame-pointer ... no, long long
reliability test 1
checking compiler gcc -O2 -fomit-frame-pointer ... no, long long
reliability test 1
configure: error: could not find a working compiler, see config.log for
details
Failed to configure.

real0m5.366s
user0m3.212s
sys 0m1.532s
sage: An error occurred while installing mpir-1.2.2.p2
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of 
/home/peigneux/Bureau/Sage/sage-4.6.2-linux-32bit-ubuntu_10.04_lts-i686-Linux-i686-Linux/install.log.
  Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/peigneux/Bureau/Sage/sage-4.6.2-linux-32bit-ubuntu_10.04_lts-i686-Linux-i686-Linux/spkg/build/mpir-1.2.2.p2
 and type 'make check' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd
'/home/peigneux/Bureau/Sage/sage-4.6.2-linux-32bit-ubuntu_10.04_lts-i686-Linux-i686-Linux/spkg/build/mpir-1.2.2.p2'
 && 
'/home/peigneux/Bureau/Sage/sage-4.6.2-linux-32bit-ubuntu_10.04_lts-i686-Linux-i686-Linux/sage'
 -sh)
When you are done debugging, you can type "exit" to leave the
subshell.
Calling sage-spkg on atlas
Warning: Attempted to overwrite SAGE_ROOT environment variable
atlas
Machine:
Linux peigneux-desktop 2.6.32-31-generic #61-Ubuntu SMP Fri Apr 8
18:24:35 UTC 2011 i686 GNU/Linux
Deleting directories from past builds of previous/current versions of
atlas
Extracting
package 
/home/peigneux/Bureau/Sage/sage-4.6.2-linux-32bit-ubuntu_10.04_lts-i686-Linux-i686-Linux/spkg/standard/atlas-3.8.3.p16.spkg
 ...
-rw-r--r-- 1 peigneux peigneux 107 2011-03-04
14:20 
/home/peigneux/Bureau/Sage/sage-4.6.2-linux-32bit-ubuntu_10.04_lts-i686-Linux-i686-Linux/spkg/standard/atlas-3.8.3.p16.spkg
tar: Ceci ne ressemble pas à une archive de type « tar »
tar: Arrêt avec code d'échec à cause des erreurs précédentes
Finished extraction
sage: After decompressing the director

Re: [sage-support] Difficulties with Sage installation on ubuntu 10.04 lts

2011-04-27 Thread David Kirkby
On 27 April 2011 13:46, jean-pierre.peigneux
 wrote:
> Ok I tried without success ,below there is the ouput of the try,could
> you make other suggestions,thanks:

To me it seems your Fortran compiler is not functioning properly.

It would help if you configured your system to show error messages in English.

> sage -f mpir atlas

> cd 
> /home/peigneux/Bureau/Sage/sage-4.6.2-linux-32bit-ubuntu_10.04_lts-i686-Linux-i686-Linux/spkg/build/atlas-3.8.3.p16/ATLAS-build
>  ; ./xprobe_comp -v 0 -o atlconf.txt -O 1 -A 20 -Si nof77 0  -Fa ic '-fPIC' 
> -Fa sm '-fPIC' -Fa dm '-fPIC' -Fa sk '-fPIC' -Fa dk '-fPIC' -Fa xc '-fPIC' -C 
> if 
> '/home/peigneux/Bureau/Sage/sage-4.6.2-linux-32bit-ubuntu_10.04_lts-i686-Linux-i686-Linux/local/bin/sage_fortran'
>  -Fa if '-fPIC'  -b 32 > config1.out
> :0: internal compiler error: Instruction non permise
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See  for instructions.
> make[2]: *** [IRunF77Comp] Erreur 1

That certainly indicates a compiler issue.
>
>
> Unable to find usable compiler for F77; abortingMake sure compilers are
> in your path, and specify good compilers to configure

Your initial problem with Sage's "prereq" script had an issue with
your Fortran compiler. William suggested you basically ignored that
and tried to install ATLAS. But that generates an internal compiler
error.

I believe others have built Sage with Ubuntu 10.10, so I think it's
safe to say there's a problem with your setup, and not with Sage.

Since your C compiler appears to be working, I would suggest your
build GCC with C, C++ and Fortran support. GCC 4.5.2 would be a good
choice - do NOT use gcc 4.6.0.

I don't know about others, but I can't think of anything else.

Have you been building lots of programs as root? That increases the
chances of you messing up your system. I believe your system is messed
up in some way.

Dave


Dave

-- 
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] Difficulties with Sage installation on ubuntu 10.04 lts

2011-04-27 Thread David Kirkby
On 27 April 2011 17:20, David Kirkby  wrote:

> I believe others have built Sage with Ubuntu 10.10, so I think it's
> safe to say there's a problem with your setup, and not with Sage.

Sorry, I mean ?I believe,others have built Sage with Ubuntu 10.04 - I
myself have built it with Ubuntu 10.10.

Dave

-- 
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: Anyone have experience of running Sage Notebook on Kindle 3 web browser?

2011-04-27 Thread Rado
I just tried it and it works quite nice. Only annoying part is that numbers 
and parenthesis are not on the keyboard, so you have to navigate with arrows 
to select them then typing. The actual webpage rending is fine. I did 
plotting. Even graph editor works but there is no way to move the mouse in 
smaller chunks that predefined jumps, so its unusable.

Ask me if you want to know about anything in particular.

-- 
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] Re: Anyone have experience of running Sage Notebook on Kindle 3 web browser?

2011-04-27 Thread Andrzej Giniewicz
On Wed, Apr 27, 2011 at 8:37 PM, Rado  wrote:
> I just tried it and it works quite nice. Only annoying part is that numbers
> and parenthesis are not on the keyboard, so you have to navigate with arrows
> to select them then typing. The actual webpage rending is fine. I did
> plotting. Even graph editor works but there is no way to move the mouse in
> smaller chunks that predefined jumps, so its unusable.
> Ask me if you want to know about anything in particular.

thanks for checking, that's quite good news. And how about sliders in
interact? Is there way to manipulate them?

Andrzej.

-- 
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: Anyone have experience of running Sage Notebook on Kindle 3 web browser?

2011-04-27 Thread Jason Grout

On 4/27/11 1:37 PM, Rado wrote:

I just tried it and it works quite nice. Only annoying part is that
numbers and parenthesis are not on the keyboard, so you have to navigate
with arrows to select them then typing. The actual webpage rending is
fine. I did plotting. Even graph editor works but there is no way to
move the mouse in smaller chunks that predefined jumps, so its unusable.



If you press hold down Alt and press the letters on the top row, you'll 
get numbers without having to use the sym key, IIRC.


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] 2d plot functions: thickness - How thick the line is

2011-04-27 Thread clinton bowen
Hello,

My question about the thickness attribute for 2d plot functions.
Could somebody explain to me:
1) what does "thickness - How thick the line is" mean?   this is
somewhat ambiguous to me.  Could somebody elaborate to me what this
means (e.g. thickness = 2 or thickness = 0.2)
2) My guess is that whether a picture of a plot is relative to its
width and height so if I were plotting on the unit square,  I won't
see a line or a circle with thickness = .002   Is this correct?

Any help/clarification is appreciated.

Thanks,
Clinton

-- 
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: 2d plot functions: thickness - How thick the line is

2011-04-27 Thread Jason Grout

On 4/27/11 10:10 PM, clinton bowen wrote:

Hello,

My question about the thickness attribute for 2d plot functions.
Could somebody explain to me:
1) what does "thickness - How thick the line is" mean?   this is
somewhat ambiguous to me.  Could somebody elaborate to me what this
means (e.g. thickness = 2 or thickness = 0.2)
2) My guess is that whether a picture of a plot is relative to its
width and height so if I were plotting on the unit square,  I won't
see a line or a circle with thickness = .002   Is this correct?


Thickness is the thickness of the line measured in points (1/72 of an 
inch).  The thickness does not depend on the scale of the graph; a line 
of thickness 2 points will always appear to be the same width visually, 
no matter the scale of the graph.  You can think of the thickness as the 
size of the pen used to draw the line.


In Sage, we try to make a distinction between "thickness" (which is 
independent of the scale of the graph) and "width" (which is measured in 
data coordinates, so is dependent on the scale of the graph).  Hopefully 
we've been consistent in our use of the terminology.


Does that help?

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: 2d plot functions: thickness - How thick the line is

2011-04-27 Thread kcrisman


On Apr 27, 11:10 pm, clinton bowen  wrote:
> Hello,
>
> My question about the thickness attribute for 2d plot functions.
> Could somebody explain to me:
> 1) what does "thickness - How thick the line is" mean?   this is
> somewhat ambiguous to me.  Could somebody elaborate to me what this
> means (e.g. thickness = 2 or thickness = 0.2)

I think this is passed to matplotlib, so their docs would be
relevant.  If you look at

sage: sage.plot.line.Line??

you'll discover that we are using set_linewidth, which is

"set_linewidth(w)
Set the line width in points

ACCEPTS: float value in points"

so points is the unit.   (By the way, that this is where the doc lives
is not obvious; we try to hide this a little from the typical end
user, because mpl allows too much customization for the casual
plotter.)

> 2) My guess is that whether a picture of a plot is relative to its
> width and height so if I were plotting on the unit square,  I won't
> see a line or a circle with thickness = .002   Is this correct?

You can try it yourself.  The default plot is in the side 2 box
centered at the origin, and


sage: plot(sin(x),thickness=.0002)

sage: plot(sin(x),thickness=.2)

sage: plot(sin(x),thickness=.02)

sage: plot(sin(x),thickness=.2)

only the last one shows up, just barely, on my computer.  I suppose if
you made the image MUCH larger it might.

Please let us know if this doesn't answer your question, though!

- kcrisman

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