[sage-support] Re: Code Highlighting

2009-11-17 Thread Pierre

just use emacs with sage-mode !!

On Nov 16, 12:52 pm, Marshall Hampton hampto...@gmail.com wrote:
 One option I use sometimes is the It's All Text! plugin for firefox,
 which gives you a little edit button for each cell.  That button can
 be customized to launch your favorite text editor.  I find it useful
 when dealing with large blocks of code in the notebook.

 -M. Hampton

 On Nov 16, 5:17 am, calcp...@aol.com wrote:

  Can't you write python code in a text editor that supports highlighting
  then copy and paste to a cell or import the file somehow?

  HTH,
  A. Jorge Garciahttp://calcpage.tripod.com

  Teacher  Professor
  Applied Mathematics, Physics  Computer Science
  Baldwin Senior High School  Nassau Community College
--~--~-~--~~~---~--~~
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: Code Highlighting

2009-11-17 Thread Marshall Hampton

Would that work for a remote sage server?  I've never tried it.

-Marshall

On Nov 17, 4:24 am, Pierre pierre.guil...@gmail.com wrote:
 just use emacs with sage-mode !!

 On Nov 16, 12:52 pm, Marshall Hampton hampto...@gmail.com wrote:

  One option I use sometimes is the It's All Text! plugin for firefox,
  which gives you a little edit button for each cell.  That button can
  be customized to launch your favorite text editor.  I find it useful
  when dealing with large blocks of code in the notebook.

  -M. Hampton

  On Nov 16, 5:17 am, calcp...@aol.com wrote:

   Can't you write python code in a text editor that supports highlighting
   then copy and paste to a cell or import the file somehow?

   HTH,
   A. Jorge Garciahttp://calcpage.tripod.com

   Teacher  Professor
   Applied Mathematics, Physics  Computer Science
   Baldwin Senior High School  Nassau Community College
--~--~-~--~~~---~--~~
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: plot3d can't handle log(0)

2009-11-17 Thread Francois Maltey

Hello,

 As a first pass, just surround the evaluation with a try/except, as
 you would in Python. Perhaps you could set the value in the except
 clause to nan.
 
For the 2d-plot, I test if a result is a real number by theses tests :

#
# The real number without infty nor NaN=NotANumber verifies this test.
# The result is either (x,y) either False
#

  def plotFuncCall (self, t) :
try :
  K = [float(self.fct[0](t)), float(self.fct[1]]
  if not (self.minusInftyK[0] and K[0]self.plusInfty) : return False
  if not (self.minusInftyK[1] and K[1]self.plusInfty) : return False
except (ZeroDivisionError, TypeError, ValueError, OverflowError) :
  return  False
return K

float ('nan')  float('nan') is true ! : it seems very difficult to 
test if a result is nan.
But only real number, neither nan nor infty verify this test -infty  x 
 +infty.

And at an other place I have self.minusInfty = float('-inf') and 
self.plusInfty=float('inf')



--~--~-~--~~~---~--~~
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: plot3d can't handle log(0)

2009-11-17 Thread kcrisman

Would all these ideas for testing deal with the triangulation issue,
Bill?  Your original post seems to imply this.

- kcrisman

On Nov 17, 8:01 am, Francois Maltey fmal...@nerim.fr wrote:
 Hello,

  As a first pass, just surround the evaluation with a try/except, as
  you would in Python. Perhaps you could set the value in the except
  clause to nan.

 For the 2d-plot, I test if a result is a real number by theses tests :

 #
 # The real number without infty nor NaN=NotANumber verifies this test.
 # The result is either (x,y) either False
 #

   def plotFuncCall (self, t) :
     try :
       K = [float(self.fct[0](t)), float(self.fct[1]]
       if not (self.minusInftyK[0] and K[0]self.plusInfty) : return False
       if not (self.minusInftyK[1] and K[1]self.plusInfty) : return False
     except (ZeroDivisionError, TypeError, ValueError, OverflowError) :
       return  False
     return K

 float ('nan')  float('nan') is true ! : it seems very difficult to
 test if a result is nan.
 But only real number, neither nan nor infty verify this test -infty  x
  +infty.

 And at an other place I have self.minusInfty = float('-inf') and
 self.plusInfty=float('inf')
--~--~-~--~~~---~--~~
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] maxima-great stats

2009-11-17 Thread Mikie
I am using the stats package in Maxima.  Works great.  Don't have to
use eval.  I developing a function for the student tTest.  take a
list for the data.  I put some bad data in the list --example-
[44,55,55/0,14*2].  Maxima takes the list in and finds the divide by
0.  By the way the 14*2 works also. If I put the try-exception on
the input from the html page.  The server hings up.  Where do I put
it?
My function is below

def tTest(self,data1,conf,alt,mean_):#this works
maxima.load(stats)
dat =data1;con=conflevel=+str(conf);alt1a=alternative=+str
(alt)
me_=mean=+str(mean_)
a1=maxima.test_mean(dat,con,alt1a,me_)
a2=str(a1)
str1=Student tTest
return str1,a2
---
Thanx

-- 
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] [sage-edu] Re: Advice on adopting Sage in undergrad teaching?

2009-11-17 Thread Alex Ghitza

On Tue, Nov 17, 2009 at 09:23:40PM +0100, Francois Maltey wrote:
 This calculus is maple-right but is user-discourteous.
 
 M = matrix ([[a,b],[c,d]])
 0*M = 0 with maple, and all other systems answer matrix([[0,0],[0,0]])
 
 Even if you explain that for maple syntax, it's normal to get 0*A = 0 
 because the right way is evalm(0*M), I repeat : everyone thinks that 
 0*M = matrix 0, not number 0. This 0*XYZ=0 rule isn't fine.
 Only(?) an object language (as python) can treat this multi-sens of zero.

I'm not sure I understand this paragraph.  Mathematically, 0*M is
always the zero matrix and never the number 0.  So it seems to me that
maple screws up if it returns the number 0.  In Sage:

sage: var(a b c d)
(a, b, c, d)
sage: M = matrix([[a,b],[c,d]])
sage: 0*M

[0 0]
[0 0]



 I have an other question : how can you easily verify this  theorem in 
 sage ?
 
 M = matrix([[a,b],[c,d]])# or an nxn matrix with any parameters...
 P = det (M - x*matrix ONE) # Call Cayley-Hamilton therem in France
 eval (P with x=M) answers matrix([[0,0],[0,0]]).


Here is one way, I don't know if there's an easier one:

sage: var(a b c d)
(a, b, c, d)
sage: M = matrix([[a,b],[c,d]])
sage: I = M.parent()(1)
sage: P = lambda x: det(M - x*I)
sage: P(M)
0

 
 The two first methods I don't find in sage was :
 
 1/ Sum as sum(q^k, k=0..N)=(1-q^(n+1))/(1-q) and sum(x^k/k!, k=0..+oo)=e^x

This is in the works presently, wrapping Maxima's symbolic summation.
It's ticket 3587, and might make it into sage-4.3:

http://trac.sagemath.org/sage_trac/ticket/3587

 
 2/ kernel over matrix is right, but I don't find the maple intbasis and 
 sumbasis which build a basis for F cap G and F+G where the F and G 
 subspaces are described by a list of vectors.
 

You have to work with the objects in Sage (which in my opinion is good
because students are forced to think about subspaces rather than lists
of vectors):

sage: V = VectorSpace(QQ, 5)
sage: F = V.subspace([(0,1,2,3,4), (1,2,3,4,6), (0,1,0,1,0)])
sage: G = V.subspace([(1, 1, 0, 0, 0), (0, 1, 1, 2, 2), (5, 4, 3, 2, 1)])
sage: I = F.intersection(G)
sage: I.basis()

[
(1, 0, -1, -2, -2),
(0, 1, 1, 2, 2)
]

sage: S = F + G
sage: S.basis()

[
(1, 0, 0, -1, 0),
(0, 1, 0, 1, 0),
(0, 0, 1, 1, 0),
(0, 0, 0, 0, 1)
]


Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
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] Matrix methods

2009-11-17 Thread kcrisman
Dear support,

sage: M = matrix(RDF,[[1.,2.],[3.,4.]])
sage: M.LU()

([0.0 1.0]
[1.0 0.0],
 [   1.00.0]
[0.1.0],
 [   3.04.0]
[   0.0 0.6667])
sage: N = matrix([[1.,2.],[3.,4.]]) # N.L[tab] does nothing
sage: O = matrix([[1,2],[3,4]]) # O.L[tab] only gives lattice stuff

Is there a mathematical reason LU decomposition isn't available for
these, or was it simply never implemented?  It seems it is only
available for
sage.matrix.matrix_real_double_dense.Matrix_real_double_dense, not for
sage.matrix.matrix_generic_dense.Matrix_generic_dense (floats, RR).

And would it be mathematically correct to place that code in place if
all entries could be RDFed, or not?  Any equivalent for symbolic
matrices (even if slow)?

(On a related note,

sage: O = matrix([[1,2],[3,4]])
sage: O.echelon_form()

[1 0]
[0 2]

so apparently we have yet to implement the (agreed on sage-devel?)
decision that echelon_form should be over the most sensible quotient
field...)

- 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


[sage-support] Re: Matrix methods

2009-11-17 Thread Jason Grout
kcrisman wrote:
 Dear support,
 
 sage: M = matrix(RDF,[[1.,2.],[3.,4.]])
 sage: M.LU()
 
 ([0.0 1.0]
 [1.0 0.0],
  [   1.00.0]
 [0.1.0],
  [   3.04.0]
 [   0.0 0.6667])
 sage: N = matrix([[1.,2.],[3.,4.]]) # N.L[tab] does nothing
 sage: O = matrix([[1,2],[3,4]]) # O.L[tab] only gives lattice stuff
 
 Is there a mathematical reason LU decomposition isn't available for
 these, or was it simply never implemented?  It seems it is only
 available for
 sage.matrix.matrix_real_double_dense.Matrix_real_double_dense, not for
 sage.matrix.matrix_generic_dense.Matrix_generic_dense (floats, RR).


RDF LU calls scipy.

Here is a trac ticket with a patch for a generic LU decomposition:

http://trac.sagemath.org/sage_trac/ticket/3048



 
 And would it be mathematically correct to place that code in place if
 all entries could be RDFed, or not?  Any equivalent for symbolic
 matrices (even if slow)?
 
 (On a related note,
 
 sage: O = matrix([[1,2],[3,4]])
 sage: O.echelon_form()
 
 [1 0]
 [0 2]
 
 so apparently we have yet to implement the (agreed on sage-devel?)
 decision that echelon_form should be over the most sensible quotient
 field...)
 


Not yet.  I have a partial patch waiting for me to get back to it.

Jason


-- 
Jason Grout

-- 
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: Advice on adopting Sage in undergrad teaching?

2009-11-17 Thread Simon King
Hi Alex!

On 17 Nov., 22:12, Alex Ghitza aghi...@gmail.com wrote:
...
 I'm not sure I understand this paragraph.  Mathematically, 0*M is
 always the zero matrix and never the number 0.  So it seems to me that
 maple screws up if it returns the number 0.  

I don't know whether maple returns the number 0. But even in Sage,
although 0*M is a matrix and not a number, this matrix is equal to the
number 0:

sage: M = Matrix([[1,2],[3,4]])
sage: 0*M==0
True
sage: type(0*M)
type 'sage.matrix.matrix_integer_dense.Matrix_integer_dense'


Cheers,
Simon

-- 
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: Advice on adopting Sage in undergrad teaching?

2009-11-17 Thread Alex Ghitza
On Tue, Nov 17, 2009 at 01:52:58PM -0800, Simon King wrote:
 Hi Alex!
 
 On 17 Nov., 22:12, Alex Ghitza aghi...@gmail.com wrote:
 ...
  I'm not sure I understand this paragraph.  Mathematically, 0*M is
  always the zero matrix and never the number 0.  So it seems to me that
  maple screws up if it returns the number 0.  
 
 I don't know whether maple returns the number 0. But even in Sage,
 although 0*M is a matrix and not a number, this matrix is equal to the
 number 0:
 
 sage: M = Matrix([[1,2],[3,4]])
 sage: 0*M==0
 True
 sage: type(0*M)
 type 'sage.matrix.matrix_integer_dense.Matrix_integer_dense'
 

This is most likely because __cmp__ first coerces the right hand side
(0) into the matrix space that the left hand side (0*M) lives in.  I
think that's fine, though?


Alex

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
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: maxima-great stats

2009-11-17 Thread Harald Schilly
On Nov 17, 10:10 pm, Mikie thephantom6...@hotmail.com wrote:
 student tTest

Hi, do you know that there is R inside Sage? An example right from
sagenb.org:

import rpy2.robjects as robjects
data = robjects.IntVector([44,55,56,14*2])
ttest = robjects.r['t.test']
print ttest(data)

gives:

One Sample t-test

data:  c(44L, 55L, 56L, 28L)
t = 7.0263, df = 3, p-value = 0.005922
alternative hypothesis: true mean is not equal to 0
95 percent confidence interval:
 25.02843 66.47157
sample estimates:
mean of x
45.75

-- 
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: maxima-great stats

2009-11-17 Thread Mikie
Hi Harald,
No I don't have R.
I did convert the list(str) to a real list and did a trap on that and
it did work.
How do I get R into Sage?
Thanx

On Nov 17, 2:58 pm, Harald Schilly harald.schi...@gmail.com wrote:
 On Nov 17, 10:10 pm, Mikie thephantom6...@hotmail.com wrote:

  student tTest

 Hi, do you know that there is R inside Sage? An example right from
 sagenb.org:

 import rpy2.robjects as robjects
 data = robjects.IntVector([44,55,56,14*2])
 ttest = robjects.r['t.test']
 print ttest(data)

 gives:

 One Sample t-test

 data:  c(44L, 55L, 56L, 28L)
 t = 7.0263, df = 3, p-value = 0.005922
 alternative hypothesis: true mean is not equal to 0
 95 percent confidence interval:
  25.02843 66.47157
 sample estimates:
 mean of x
     45.75

-- 
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: maxima-great stats

2009-11-17 Thread Jason Grout
Mikie wrote:
 Hi Harald,
 No I don't have R.
 I did convert the list(str) to a real list and did a trap on that and
 it did work.
 How do I get R into Sage?


R comes with every Sage install, by default.  You don't have to do anything.

-Jason


-- 
Jason Grout

-- 
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: maxima-great stats

2009-11-17 Thread William Stein
On Tue, Nov 17, 2009 at 2:58 PM, Mikie thephantom6...@hotmail.com wrote:
 Hi Harald,
 No I don't have R.
 I did convert the list(str) to a real list and did a trap on that and
 it did work.
 How do I get R into Sage?

Every copy of Sage comes with R.

William

-- 
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: Server Wars!

2009-11-17 Thread calcpage

Yes, but I personally would drop the ftp and only use ssh/sftp and
Sage. In any case, those services operate through different ports
so you can use the same physical server for all 3.


OK, but how do I emulate anonymous ftp with sftp?

HTH,
A. Jorge Garcia
http://calcpage.tripod.com

Teacher  Professor
Applied Mathematics, Physics  Computer Science
Baldwin Senior High School  Nassau Community College


-Original Message-
From: David Joyner wdjoy...@gmail.com
To: sage-support@googlegroups.com
Sent: Sat, Nov 14, 2009 11:03 am
Subject: [sage-support] Re: Server Wars!


On Sat, Nov 14, 2009 at 10:52 AM,  calcp...@aol.com wrote:

 BTW, I currently have 3 Linux servers at school.  One is an ftp server
 to share files with my students. Another is an sftp server where my
 students can login to save their work.  And another is down right now
 and was an apache server.  I should be getting that last one repaired
 soon and am thinking of making it a SAGE server.

 My question is, can I combine all 3 services (ftp, sftp, SAGE) on one
 physical server?  That way I will only need 2 servers (one more as a
 mirror, backup, failsafe)


Yes, but I personally would drop the ftp and only use ssh/sftp and
Sage. In any case, those services operate through different ports
so you can use the same physical server for all 3.




 HTH,
 A. Jorge Garcia
 http://calcpage.tripod.com

 Teacher  Professor
 Applied Mathematics, Physics  Computer Science
 Baldwin Senior High School  Nassau Community College


 


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


Re: [sage-support] Re: Server Wars!

2009-11-17 Thread David Joyner
On Tue, Nov 17, 2009 at 7:59 PM,  calcp...@aol.com wrote:

 Yes, but I personally would drop the ftp and only use ssh/sftp and
 Sage. In any case, those services operate through different ports
 so you can use the same physical server for all 3.
 

 OK, but how do I emulate anonymous ftp with sftp?


I don't know. Maybe you can create some kind of web interface?
If it is only to submit Sage assignments then you can just use the
Sage server.




 HTH,
 A. Jorge Garcia
 http://calcpage.tripod.com

 Teacher  Professor
 Applied Mathematics, Physics  Computer Science
 Baldwin Senior High School  Nassau Community College


 -Original Message-
 From: David Joyner wdjoy...@gmail.com
 To: sage-support@googlegroups.com
 Sent: Sat, Nov 14, 2009 11:03 am
 Subject: [sage-support] Re: Server Wars!


 On Sat, Nov 14, 2009 at 10:52 AM,  calcp...@aol.com wrote:

 BTW, I currently have 3 Linux servers at school.  One is an ftp server
 to share files with my students. Another is an sftp server where my
 students can login to save their work.  And another is down right now
 and was an apache server.  I should be getting that last one repaired
 soon and am thinking of making it a SAGE server.

 My question is, can I combine all 3 services (ftp, sftp, SAGE) on one
 physical server?  That way I will only need 2 servers (one more as a
 mirror, backup, failsafe)


 Yes, but I personally would drop the ftp and only use ssh/sftp and
 Sage. In any case, those services operate through different ports
 so you can use the same physical server for all 3.




 HTH,
 A. Jorge Garcia
 http://calcpage.tripod.com

 Teacher  Professor
 Applied Mathematics, Physics  Computer Science
 Baldwin Senior High School  Nassau Community College


 


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

-- 
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: plot3d can't handle log(0)

2009-11-17 Thread William Cauchois
On Tue, Nov 17, 2009 at 6:08 AM, kcrisman kcris...@gmail.com wrote:


 Would all these ideas for testing deal with the triangulation issue,
 Bill?  Your original post seems to imply this.

 - kcrisman


I thought that, during triangulation, we could test for NaN values and
delete those faces. However, I see now that ParametricSurface.triangulate
assumes a regular indexing scheme for the _faces array, so the array must be
full. This means that deleting faces must be performed after the mesh has
been triangulated, unless we want to change the algorithm significantly.

Jason Grout and I actually dealt with these same issues when working on
#5514, exclusions for parametric 3D plots, which unfortunately is not
entirely finished. Perhaps a better way to get plot3d to handle functions
with undefined values would be to finish work on #5514, and then after we
encounter undefined values apply a region function (this is the feature that
#5514 implements) that serves to exclude those values. I should have
recognized this at the beginning!

Does that sound like a good course of action? I can definitely revisit
#5514.

-- 
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: plot3d can't handle log(0)

2009-11-17 Thread Jason Grout
William Cauchois wrote:
 On Tue, Nov 17, 2009 at 6:08 AM, kcrisman kcris...@gmail.com 
 mailto:kcris...@gmail.com wrote:
 
 
 Would all these ideas for testing deal with the triangulation issue,
 Bill?  Your original post seems to imply this.
 
 - kcrisman
 
 
 I thought that, during triangulation, we could test for NaN values and 
 delete those faces. However, I see now that 
 ParametricSurface.triangulate assumes a regular indexing scheme for the 
 _faces array, so the array must be full. This means that deleting faces 
 must be performed after the mesh has been triangulated, unless we want 
 to change the algorithm significantly.
 
 Jason Grout and I actually dealt with these same issues when working on 
 #5514, exclusions for parametric 3D plots, which unfortunately is not 
 entirely finished. Perhaps a better way to get plot3d to handle 
 functions with undefined values would be to finish work on #5514, and 
 then after we encounter undefined values apply a region function (this 
 is the feature that #5514 implements) that serves to exclude those 
 values. I should have recognized this at the beginning!
 
 Does that sound like a good course of action? I can definitely revisit 
 #5514.


That sounds reasonable.  I'd rather have #5514 in anyway, if there had 
to be a choice, since you could then just manually specify an exclusion 
region.

Jason



-- 
Jason Grout

-- 
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: Server Wars!

2009-11-17 Thread CalcPage
Well, I use the ftp site to share files with my students (pdfs, mp4s,  
assorted apps, etc).  So, I think I need a dedicated ftp server after  all
 
HTH,
A.  Jorge Garcia
_http://calcpage.tripod.com_ (http://calcpage.tripod.com/) 

Teacher   Professor
Applied Mathematics, Physics  Computer  Science
Baldwin Senior High School  Nassau Community College


In a message dated 11/17/2009 8:14:46 P.M. Eastern Standard Time,  
wdjoy...@gmail.com writes:

I don't  know. Maybe you can create some kind of web interface?
If it is only to  submit Sage assignments then you can just use the
Sage  server.



-- 
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] binary for ubuntu 8.04

2009-11-17 Thread Minh Nguyen
Hi Ajay,

On Wed, Nov 18, 2009 at 3:28 PM, Ajay Rawat ajay.rawa...@gmail.com wrote:

 Hello,

  Is the binary for sage 4.2.1 is available for ubuntu 8.04 (64 bit).

There are binaries for Ubuntu 9.10, both 32- and 64-bit. There are no
binaries for Ubuntu 8.04 64-bit. If you want a binary for that
platform, you could download the source tarball of Sage 4.2.1 and
compile the source on that platform.


  How it is different from compiling the source package?

Each source tarball is shipped with the source of the standard
packages that make up Sage. In particular, the Sage standard library
is one of many standard packages. A binary of Sage doesn't ship with
the source of most standard packages. This is to save space, otherwise
you would get a binary that is bigger in terms of megabytes than
currently is the case. However, note that each binary also contains
the source of the Sage standard library.

-- 
Regards
Minh Van Nguyen

-- 
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] binary for ubuntu 8.04

2009-11-17 Thread William Stein
On Tue, Nov 17, 2009 at 8:50 PM, Minh Nguyen nguyenmi...@gmail.com wrote:
 Hi Ajay,

 On Wed, Nov 18, 2009 at 3:28 PM, Ajay Rawat ajay.rawa...@gmail.com wrote:

 Hello,

  Is the binary for sage 4.2.1 is available for ubuntu 8.04 (64 bit).

 There are binaries for Ubuntu 9.10, both 32- and 64-bit. There are no
 binaries for Ubuntu 8.04 64-bit. If you want a binary for that
 platform, you could download the source tarball of Sage 4.2.1 and
 compile the source on that platform.

The binary I build on sage.math.washington.edu (for that machine) may
work for you, since that machineis a 32-bit Ubuntu 8.04 box:

http://sage.math.washington.edu/home/wstein/binaries/sage-4.2.1-linux-sage.math.washington.edu-x86_64-Linux.tar.gz

Give it a shot.

William



  How it is different from compiling the source package?

 Each source tarball is shipped with the source of the standard
 packages that make up Sage. In particular, the Sage standard library
 is one of many standard packages. A binary of Sage doesn't ship with
 the source of most standard packages. This is to save space, otherwise
 you would get a binary that is bigger in terms of megabytes than
 currently is the case. However, note that each binary also contains
 the source of the Sage standard library.

 --
 Regards
 Minh Van Nguyen

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


Re: [sage-support] binary for ubuntu 8.04

2009-11-17 Thread Robert Bradshaw
On Nov 17, 2009, at 9:55 PM, William Stein wrote:

 On Tue, Nov 17, 2009 at 8:50 PM, Minh Nguyen nguyenmi...@gmail.com  
 wrote:
 Hi Ajay,

 On Wed, Nov 18, 2009 at 3:28 PM, Ajay Rawat  
 ajay.rawa...@gmail.com wrote:

 Hello,

  Is the binary for sage 4.2.1 is available for ubuntu 8.04 (64 bit).

 There are binaries for Ubuntu 9.10, both 32- and 64-bit. There are no
 binaries for Ubuntu 8.04 64-bit. If you want a binary for that
 platform, you could download the source tarball of Sage 4.2.1 and
 compile the source on that platform.

 The binary I build on sage.math.washington.edu (for that machine) may
 work for you, since that machineis a 32-bit Ubuntu 8.04 box:

 http://sage.math.washington.edu/home/wstein/binaries/sage-4.2.1-linux-sage.math.washington.edu-x86_64-Linux.tar.gz

 Give it a shot.

I think you meant to say it's a *64*-bit Ubuntu 8.04 box. If for some  
reason that doesn't work, building from source is really easy--just  
unpack the .tar, type make, and wait 3-4 hours.

  How it is different from compiling the source package?

 Each source tarball is shipped with the source of the standard
 packages that make up Sage. In particular, the Sage standard library
 is one of many standard packages. A binary of Sage doesn't ship with
 the source of most standard packages. This is to save space,  
 otherwise
 you would get a binary that is bigger in terms of megabytes than
 currently is the case. However, note that each binary also contains
 the source of the Sage standard library.

In short, the only difference is that the binary doesn't come with  
(all) the source to save space (and, of course, you don't have to wait  
for it to build).

- Robert

-- 
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] binary for ubuntu 8.04

2009-11-17 Thread Ajay Rawat
Thanks for the prompt response I'm planning to compile from source.
Any problem arises i'll inform you.
I all ready had python installed does sage installation will clash with my
python environment variable.

thanking you


On Wed, Nov 18, 2009 at 12:31 PM, Robert Bradshaw 
rober...@math.washington.edu wrote:

 On Nov 17, 2009, at 9:55 PM, William Stein wrote:

  On Tue, Nov 17, 2009 at 8:50 PM, Minh Nguyen nguyenmi...@gmail.com
  wrote:
  Hi Ajay,
 
  On Wed, Nov 18, 2009 at 3:28 PM, Ajay Rawat
  ajay.rawa...@gmail.com wrote:
 
  Hello,
 
   Is the binary for sage 4.2.1 is available for ubuntu 8.04 (64 bit).
 
  There are binaries for Ubuntu 9.10, both 32- and 64-bit. There are no
  binaries for Ubuntu 8.04 64-bit. If you want a binary for that
  platform, you could download the source tarball of Sage 4.2.1 and
  compile the source on that platform.
 
  The binary I build on sage.math.washington.edu (for that machine) may
  work for you, since that machineis a 32-bit Ubuntu 8.04 box:
 
 
 http://sage.math.washington.edu/home/wstein/binaries/sage-4.2.1-linux-sage.math.washington.edu-x86_64-Linux.tar.gz
 
  Give it a shot.

 I think you meant to say it's a *64*-bit Ubuntu 8.04 box. If for some
 reason that doesn't work, building from source is really easy--just
 unpack the .tar, type make, and wait 3-4 hours.

   How it is different from compiling the source package?
 
  Each source tarball is shipped with the source of the standard
  packages that make up Sage. In particular, the Sage standard library
  is one of many standard packages. A binary of Sage doesn't ship with
  the source of most standard packages. This is to save space,
  otherwise
  you would get a binary that is bigger in terms of megabytes than
  currently is the case. However, note that each binary also contains
  the source of the Sage standard library.

 In short, the only difference is that the binary doesn't come with
 (all) the source to save space (and, of course, you don't have to wait
 for it to build).

 - Robert

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




-- 
Ajay Rawat
Kalpakkam, IGCAR

-
Save Himalayas
-

-- 
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] binary for ubuntu 8.04

2009-11-17 Thread Robert Bradshaw
On Nov 17, 2009, at 11:30 PM, Ajay Rawat wrote:

 Thanks for the prompt response I'm planning to compile from source.
 Any problem arises i'll inform you.
 I all ready had python installed does sage installation will clash  
 with my python environment variable.

 thanking you

No, Sage installs its own Python which will not interfere with your  
system Python.

- Robert

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