[sage-support] Re: URGENT - Problem with installing sage on suse10.1

2008-09-30 Thread mabshoff

On Sep 30, 12:56 am, Ines [EMAIL PROTECTED] wrote:

Hi Ines,

 I am trying to install sage on 14 pc for educational's need. the
 command make
 return three type of error's message (depending on the pc and after
 65min of
 compil) :

 error while installing cython-0.9.8
 error while installing atlas-3.8.1
 error while installing givaro-3.2.11

 and the same instruction (I replace the package's name by ... ):

 If you want to try to fix the problem, yourself *don't* just cd to
 /home/essai/Desktop/SAGEmath/sage-3.0.5/... and type 'make'.
 Instead type /home/essai/Desktop/SAGEmath/sage-3.0.5/sage -sh
 in order to set all environment variables correctly, then cd to
 /home/essai/Desktop/SAGEmath/sage-3.0.5/spkg/build/...
 (When you are done debugging, you can type exit to leave the
 subshell.)

 It is very urgent. I hope I'll can teach numerical analysis and
 operational
 research with sage to my students.

There is a file call install.log in the Sage base directory. Can you
upload it somewhere and post a link?

There are also x86 and x86-64 binaries for OpenSuSE 10.2 I believe, so
you might want to give them a try.

 Regards, Ines.

Cheers,

Michael
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: formatting not saved in notebooks

2008-09-30 Thread Stan Schymanski

Hi Mike,

Thanks for checking. Here is the text version of a notebook I made to
try it out:

save_bug
system:sage

{{{id=0|
%hide
%html
h1Saving evaluated html in notebook
///

htmlfont color='black'h1Saving evaluated html in notebook/
font/html
}}}

{{{id=1|
%hide
%html
If the cells are evaluated, the text appears in Times New Roman, but
if the notebook is closed and then re-opened, the text becomes Courier
without line breaks, making it very inconvenient to read.
///

htmlfont color='black'If the cells are evaluated, the text appears
in Times New Roman, but if the notebook is closed and then re-opened,
the text becomes Courier without line breaks, making it very
inconvenient to read./font/html
}}}

{{{id=2|

///
}}}

If I do Save  quit, and then re-open, the text version becomes:

save_bug
system:sage

{{{id=0|
%hide
%html
h1Saving evaluated html in notebook
///
htmlfont color='black'h1Saving evaluated html in notebook/
font/html
}}}

{{{id=1|
%hide
%html
If the cells are evaluated, the text appears in Times New Roman, but
if the notebook is closed and then re-opened, the text becomes Courier
without line breaks, making it very inconvenient to read.
///
htmlfont color='black'If the cells are evaluated, the text appears
in Times New Roman, but if the notebook is closed and then re-opened,
the text becomes Courier without line breaks, making it very
inconvenient to read./font/html
}}}

{{{id=2|

///
}}}


The only difference I can see is a missing empty line after /// when
the document was saved and re-opened. Can this cause the problem? I'm
using sage 3.1.2 with Firefox 3.0.3 on a Intel Mac with OSX 10.4.

Cheers,
Stan


On Sep 29, 10:07 pm, Mike Hansen [EMAIL PROTECTED] wrote:
 Hello,
 I'm not able to reproduce this on my machine.  Could you makes a
 specific list of thing you do to reproduce this on your system?

 Thanks,
 Mike
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] URGENT - Problem with installing sage on suse10.1

2008-09-30 Thread Ines

I am trying to install sage on 14 pc for educational's need. the
command make
return three type of error's message (depending on the pc and after
65min of
compil) :

error while installing cython-0.9.8
error while installing atlas-3.8.1
error while installing givaro-3.2.11

and the same instruction (I replace the package's name by ... ):

If you want to try to fix the problem, yourself *don't* just cd to
/home/essai/Desktop/SAGEmath/sage-3.0.5/... and type 'make'.
Instead type /home/essai/Desktop/SAGEmath/sage-3.0.5/sage -sh
in order to set all environment variables correctly, then cd to
/home/essai/Desktop/SAGEmath/sage-3.0.5/spkg/build/...
(When you are done debugging, you can type exit to leave the
subshell.)

It is very urgent. I hope I'll can teach numerical analysis and
operational
research with sage to my students.

Regards, Ines.

--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: formatting not saved in notebooks

2008-09-30 Thread Stan Schymanski

By the way, I also lose the formatting if I click on Edit, and then
Save changes. If I just close the browser window and then re-open
the still running notebook in a new browser window, all the previously
evaluated cells still show up alright (Times with proper line breaks).
Only if I quit the worksheet or edit its text version are the line
breaks lost and the font turns into Courier.

Hope this helps to track it down.

Cheers
Stan
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Is readline a prerequisite to build Sage?

2008-09-30 Thread Simon King

Dear Team,

currently I try to build Sage from source on a laptop (GNU/Linux
i686). The built of R failed, and the complaint is
  sys-std.c:401:33: error: readline/readline.h: No such file or
directory
  sys-std.c:431:32: error: readline/history.h: No such file or
directory

Is readline required to build Sage? Note that it is not mentioned in
the README.txt (it only lists gcc, g++, m4, ranlib, and make).

Or what else might be gone wrong?

I'll try to upload the install.log, but this will certainly take a
while, and perhaps you already have a hint for me...

Yours
  Simon

--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Is readline a prerequisite to build Sage?

2008-09-30 Thread mabshoff



On Sep 30, 5:42 am, Simon King [EMAIL PROTECTED] wrote:
 Dear Team,

Hi Simon,

 currently I try to build Sage from source on a laptop (GNU/Linux
 i686). The built of R failed, and the complaint is
   sys-std.c:401:33: error: readline/readline.h: No such file or
 directory
   sys-std.c:431:32: error: readline/history.h: No such file or
 directory

 Is readline required to build Sage?

No.

 Note that it is not mentioned in
 the README.txt (it only lists gcc, g++, m4, ranlib, and make).

 Or what else might be gone wrong?

It is a bug in R when doing processing on .d files. I have hit the
problem, too, but not fixed it yet. Feel free to open a ticket and I
will attempt to fix it in 3.1.3.

 I'll try to upload the install.log, but this will certainly take a
 while, and perhaps you already have a hint for me...

No need for the log :)

 Yours
       Simon

Cheers,

Michael
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Is readline a prerequisite to build Sage?

2008-09-30 Thread Simon King

Dear Michael

On Sep 30, 2:49 pm, mabshoff [EMAIL PROTECTED]
dortmund.de wrote:
 It is a bug in R when doing processing on .d files. I have hit the
 problem, too, but not fixed it yet. Feel free to open a ticket and I
 will attempt to fix it in 3.1.3.

It is #4222. I made it critical -- feel free to reduce the priority.

But would it solve my problem to install readline on that laptop?

Cheers
  Simon

--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Is readline a prerequisite to build Sage?

2008-09-30 Thread mabshoff



On Sep 30, 6:32 am, Simon King [EMAIL PROTECTED] wrote:
 Dear Michael,

 On Sep 30, 3:21 pm, mabshoff [EMAIL PROTECTED]

 dortmund.de wrote:
  Please test the spkg at #4222. I am 99% sure it will solve your
  problem.

 I just did:
 * removed r-2.6.1... from build/ and from standard/,
 * downloaded your package
 * make

 Unfortunately, I belong to the 1%. It is the same error as before. Or
 did I do a mistake in the above steps?

Did you drop the spkg in $SAGE_ROOT/standard/spkg?

  It would make Sage compile, but it would potentially cause subtle
  issues with tab completion for example if the system's readline is
  old.

 Is there a system's readline? which readline shows nothing!

Well, your likely have to install the readline development package
from your package manager. You can also likely copy the readline
headers from Sage into /usr/include and then R should compile, but
that is not very clean. Note that the readline headers are in a
readline directory.

 Yours
      Simon

Cheers,

Michael
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Is readline a prerequisite to build Sage?

2008-09-30 Thread Simon King

Hi,

On Sep 30, 3:37 pm, mabshoff [EMAIL PROTECTED]
dortmund.de wrote:
  I just did:
  * removed r-2.6.1... from build/ and from standard/,
  * downloaded your package
  * make

 Did you drop the spkg in $SAGE_ROOT/standard/spkg?

Do you mean in $SAGE_ROOR/spkg/standard? Yes.
Cheers
 Simon



--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Is readline a prerequisite to build Sage?

2008-09-30 Thread mabshoff



On Sep 30, 6:42 am, Simon King [EMAIL PROTECTED] wrote:
 Hi,

 On Sep 30, 3:37 pm, mabshoff [EMAIL PROTECTED]

 dortmund.de wrote:
   I just did:
   * removed r-2.6.1... from build/ and from standard/,
   * downloaded your package
   * make

  Did you drop the spkg in $SAGE_ROOT/standard/spkg?

 Do you mean in $SAGE_ROOR/spkg/standard? Yes.
 Cheers
      Simon

Ok, please send me the complete output from a full build of the new
r-2.6.1.p20.spkg offlist. I found a potential issue, but have so far
failed to force a successful rebuild of the damn autohell buildsystem
of R.

Cheers,

Michael
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Is readline a prerequisite to build Sage?

2008-09-30 Thread mabshoff



On Sep 30, 7:11 am, Simon King [EMAIL PROTECTED] wrote:
 On Sep 30, 4:02 pm, mabshoff [EMAIL PROTECTED]

 dortmund.de wrote:
  Ok, please send me the complete output from a full build of the new
  r-2.6.1.p20.spkg offlist.

 Sorry, this will take a couple of hours, because I tried the quick
 and dirty method (copy the headers into /usr/include/), which seems
 to work.

 Hence, I will
 * wait for the current built to finish
 * move the headers out of the way
 * start a new built in a different folder, using your spkg
 * wait until it fails
 * send you the log file off list
 * move the headers in place, so that I can use Sage.

No need to wait. Move the headers out of the way, download

http://sage.math.washington.edu/home/mabshoff/release-cycles-3.1.3/alpha2/r-2.6.1.p20.spkg

(it is an updated version). Then run ./sage -f path/to/spkg/
r-2.6.1.p20.spkg - that can be done in parallel to the build and if it
fails the currently installed r.spkg will not be affected.

 Cheers
        Simon

Cheers,

Michael
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Is readline a prerequisite to build Sage?

2008-09-30 Thread mabshoff



On Sep 30, 7:19 am, mabshoff [EMAIL PROTECTED]
dortmund.de wrote:
 On Sep 30, 7:11 am, Simon King [EMAIL PROTECTED] wrote:



  On Sep 30, 4:02 pm, mabshoff [EMAIL PROTECTED]

  dortmund.de wrote:
   Ok, please send me the complete output from a full build of the new
   r-2.6.1.p20.spkg offlist.

  Sorry, this will take a couple of hours, because I tried the quick
  and dirty method (copy the headers into /usr/include/), which seems
  to work.

  Hence, I will
  * wait for the current built to finish
  * move the headers out of the way
  * start a new built in a different folder, using your spkg
  * wait until it fails
  * send you the log file off list
  * move the headers in place, so that I can use Sage.

 No need to wait. Move the headers out of the way, download

 http://sage.math.washington.edu/home/mabshoff/release-cycles-3.1.3/al...

 (it is an updated version). Then run ./sage -f path/to/spkg/
 r-2.6.1.p20.spkg - that can be done in parallel to the build and if it
 fails the currently installed r.spkg will not be affected.

Ironically now I am hitting the same problem as you since I touched
the .d file, so I can now actually debug this :)

Cheers,

Michael
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Is readline a prerequisite to build Sage?

2008-09-30 Thread mabshoff



On Sep 30, 7:23 am, mabshoff [EMAIL PROTECTED]
dortmund.de wrote:

SNIP

 Ironically now I am hitting the same problem as you since I touched
 the .d file, so I can now actually debug this :)

And the problem is fixed in the thrid update of
http://sage.math.washington.edu/home/mabshoff/release-cycles-3.1.3/alpha2/r-2.6.1.p20.spkg

please try it out and let me know how it works. It does build on
sage.math without readline headers present, so it should work for you,
too. If it does not I am more than sure that NFS or some other crap
file system is to blame since as is the dependency creation code of R
is broken.

 Cheers,

 Michael

Cheers,

Michael
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: URGENT - Problem with installing sage on suse10.1

2008-09-30 Thread mabshoff

Ines Abdeljaoued-TEJ wrote:
 Hi !

Hi Ines,

please don't take discussions off list.

SNIP

 There is a file call install.log in the Sage base directory. Can you
 upload it somewhere and post a link?


 I'll try to upload the install.log, but this will take a while (I'm not in the
 office until friday).

Ok.

 There are also x86 and x86-64 binaries for OpenSuSE 10.2 I believe, so
 you might want to give them a try.


 Should Iinstall OpenSuse10.2 in place of suse 10.1 ?
 Thanks, Ines.

It is worth a try, but it might not work. I don't know a reason why
compiling Sage on OpenSuSE 10.1 should not work, but I guess we will
find out.

Cheers,

Michael
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Is readline a prerequisite to build Sage?

2008-09-30 Thread mabshoff



On Sep 30, 6:07 am, Simon King [EMAIL PROTECTED] wrote:
 Dear Michael

 On Sep 30, 2:49 pm, mabshoff [EMAIL PROTECTED]

 dortmund.de wrote:
  It is a bug in R when doing processing on .d files. I have hit the
  problem, too, but not fixed it yet. Feel free to open a ticket and I
  will attempt to fix it in 3.1.3.

 It is #4222. I made it critical -- feel free to reduce the priority.

Please test the spkg at #4222. I am 99% sure it will solve your
problem.

 But would it solve my problem to install readline on that laptop?

It would make Sage compile, but it would potentially cause subtle
issues with tab completion for example if the system's readline is
old. Don't install readline for now to make sure the above spkg fixes
the problem.

 Cheers
       Simon

Cheers,

Michael
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Setting the bounding box on plot3d

2008-09-30 Thread William Stein

On Mon, Sep 29, 2008 at 5:06 PM, Matt Rissler [EMAIL PROTECTED] wrote:

 Is there any way for the user to set the bounding box on plot3d?  The
 basic idea is I don't want the full z-values for the function and
 would like to crop some of them off.  The best I've come up with so
 far without hunting through source files is:

 y=var('y')
 f=lambda x,y: min(x^2+y^2,4);
 plot3d( f, (x,-2,2), (y,-2,2))

 If not, where do I start trying to implement it?

This is not implemented, so I'm really glad you are volunteering
to do it.You should start by proposing a notation for specifying
the bounding box, i.e., what precisely would you type into
sage to get the behavior you want, once your implementation
is done?

How does this work in Mathematica? Often we at least check
what Mathematica does before implementing something new
in Sage, since this makes porting coding from Mathematica
easier.

The code you write will probably go in
   SAGE_ROOT/devel/sage/sage/plot/plot3d/plot3d.py

William

--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Is readline a prerequisite to build Sage?

2008-09-30 Thread Simon King

Dear Michael.

On Sep 30, 4:59 pm, mabshoff [EMAIL PROTECTED]
dortmund.de wrote:
...
 And the problem is fixed in the thrid update 
 ofhttp://sage.math.washington.edu/home/mabshoff/release-cycles-3.1.3/al...

 please try it out and let me know how it works. It does build on
 sage.math without readline headers present, so it should work for you,
 too.

Sorry, it does not work. Same error as before.

Cheers
Simon

--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: How do I extend an extension field?

2008-09-30 Thread David Møller Hansen

Well, you should take it as a compliment: me having high expactations
from what I've already seen in the software :-)

I am really impressed with the software and it is a great help when
doing my thesis on Pairing based crypto here at DTU in Denmark. I've
implemented the Weil pairing and just yesterday with the help from
Justin and David made an example MOV reduction work. It's a lot easier
than having to implement it in C and figure out all the packages for
doing finite field arithmetic and having to implement the EC
arithmetic on top of that my self.

I would like to contribute but it will probably be more along the
lines of some SAGE interacts.

/David

Ps. working on getting a SAGE installation made available on the
student Solaris system.

On Sep 29, 11:19 pm, William Stein [EMAIL PROTECTED] wrote:
 On Mon, Sep 29, 2008 at 10:54 AM, David Møller Hansen

 [EMAIL PROTECTED] wrote:

  Thank you David. This seems to work just fine, though a bit of a
  roundabout - I agree.

  I do not understand why sage doesn't have a command just letting you
  expand a Galois field with a arbitrary expansion degree, in my case 4.

 It's only because you haven't written it and contributed it to Sage yet. :-)

 Seriously, I released Sage-0.1 in Jan 2005, just over 3 years ago, and
 Sage just isn't done yet, and that's pretty much the only reason why
 Sage doesn't have lots of natural things that one would like to have
 yet.

  -- William
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Is readline a prerequisite to build Sage?

2008-09-30 Thread mabshoff

SNIP

 Sorry, it does not work. Same error as before.

Yeah, considering I screwed up and did not replace the one r.spkg to
download this does not surprise me. Please try again and check that
the md5sum matches:

de0de83b25ca7b9e0a65246c067f0afa  /home/mabshoff/release-cycles-3.1.3/
alpha2/r-2.6.1.p20.spkg

Hopefully this will put this problem to rest once and for all.

 Cheers
         Simon

Cheers,

Michael
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Is readline a prerequisite to build Sage?

2008-09-30 Thread Simon King

Hi Michael,

On Sep 30, 7:04 pm, mabshoff [EMAIL PROTECTED]
dortmund.de wrote:
...
 Hopefully this will put this problem to rest once and for all.

It did! Thank you very much!

So I will also indicate it on ticket #4222

Yours
  Simon
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: bug in notebook display typesetting fractional exponents

2008-09-30 Thread Jason Merrill

On Sep 30, 6:26 pm, Jim Clark [EMAIL PROTECTED] wrote:
 Hi there,

 I found a teeny bug in sage's rendering of fractional exponents (3/2  
 in this case) in notebook's output:

  sagebug.tiff
 54KViewDownload

Hi Jim,

Try replacing %delW with %latex(delW).  Or just do

sage: show(W.gradient())

Best,

JM
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: bug in notebook display typesetting fractional exponents

2008-09-30 Thread Jim Clark

Thank you Jason! I have looked through the documentation for vector  
analysis examples, without success. I was not aware of the gradient()  
function.

HOWEVER, the bug that I came upon in my initial effort is real. I  
could probably fix it myself if I were familiar with the sage code,  
but my hopes in posting the report is that someone who already has  
that familiarity could quickly put their finger on the problem.

Cheers,
Jim Clark

On Sep 30, 2008, at 4:35 PM, Jason Merrill wrote:


 On Sep 30, 6:26 pm, Jim Clark [EMAIL PROTECTED] wrote:
 Hi there,

 I found a teeny bug in sage's rendering of fractional exponents (3/2
 in this case) in notebook's output:

  sagebug.tiff
 54KViewDownload

 Hi Jim,

 Try replacing %delW with %latex(delW).  Or just do

 sage: show(W.gradient())

 Best,

 JM


--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: bug in notebook display typesetting fractional exponents

2008-09-30 Thread Jason Merrill

On Sep 30, 10:24 pm, Jim Clark [EMAIL PROTECTED] wrote:
 Thank you Jason! I have looked through the documentation for vector  
 analysis examples, without success. I was not aware of the gradient()  
 function.

 HOWEVER, the bug that I came upon in my initial effort is real.

I don't think the behavior in your screen shot is a bug.  The problem
is that when you do the string formatting, feeding in %delW, what gets
passed in is the string representation of delW, not the latex
representation.  For example,

sage: repr([x^(3/2)])
'[x^(3/2)]'

You shouldn't expect the default string representation to be latex
syntax.  That's why I suggested you wrap delW in latex().

sage: latex([x^(3/2)])
\left[{x}^{\frac{3}{2}} \right]

JM

--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Questions about Matrices and Solving Linear Systems

2008-09-30 Thread Stephen Hartke
Hi!  I have some questions about matrices and solving linear systems of
equations.  These issues arose out of my using Sage for examples in my
Linear Optimization class (it's great for demonstrating how the simplex
algorithm works!) and for research I'm doing involving finite fields.

If I have a matrix A defined over some finite field, and a vector b over the
same finite field, what's the easiest way to solve the equation Ax=b?  Is
there any easy way to augment A with b as an extra column?  Is there an easy
way to insert a row or column?  Is there an easy way to delete a row or
column? The same questions apply for matrices over the rationals.

The functions stack() and insert_row() are pretty useful, but they seem to
be only defined for matrices over the integers.

Thanks for any help,
Stephen

--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---