[sage-support] Re: Spline question

2008-03-05 Thread William Stein

On Wed, Mar 5, 2008 at 10:57 AM, dean moore [EMAIL PROTECTED] wrote:
 Thanks!  That worked nicely.

 But should this type of thing be documented, as others may face this?

 Dean


Sure!  Could you just take the current docs for spline?, modifying them the
way you wish they were regarding the above issues, and put the result
as a response to this email?

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: Spline question

2008-03-05 Thread William Stein

On Wed, Mar 5, 2008 at 12:31 PM, dean moore [EMAIL PROTECTED] wrote:
 Not sending this to the whole group -- no reason.

 Sure, will document it let you know when I have something nice.  The word
 spline
 seems to occur in two pages I find.

Thanks!


 In other news, I finally dual-booted my computer Microsoft-Linux  was
 trying to install
  sage from source.  No m4.  Running Ubuntu 7.10.  I type which m4 in a
 terminal  next
 line is blank.

 While it's not a big deal to grab a package  install it, I want to make
 sure I have the
  right thing.  Is this the m4 referred at 
 http://en.wikipedia.org/wiki/GNU_m4 ?  What
 I'm guessing; please correct me be I wrong.

 Might be another documentation thing.  My first searches led me to a machine
 gun,
  probably not a component of sage.

Yes, you need the m4 mentioned above.  There may be other packages
you need -- refer to the README.txt.   Do

   [EMAIL PROTECTED]:~$ sudo apt-get install m4

to install m4 on ubuntu.   Unfortunately, at present a machine gun
can't be used in lieu m4 when building Sage.

 -- William




 On Wed, Mar 5, 2008 at 1:13 PM, William Stein [EMAIL PROTECTED] wrote:

 
 
 
 
 
  On Wed, Mar 5, 2008 at 10:57 AM, dean moore [EMAIL PROTECTED]
 wrote:
   Thanks!  That worked nicely.
  
   But should this type of thing be documented, as others may face this?
  
   Dean
  
 
  Sure!  Could you just take the current docs for spline?, modifying them
 the
  way you wish they were regarding the above issues, and put the result
  as a response to this email?
 
  William
 
 
 
 
 
   
 





-- 
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Spline question

2008-03-05 Thread William Stein

On Wed, Mar 5, 2008 at 8:10 PM, dean moore [EMAIL PROTECTED] wrote:
 Well, I've been tempted to do something with a machine gun ...

 Grabbed m4-1.4.10  unpacked it.  Still get the same error, SAGE BUILD
 ERROR:
 Command 'm4' not found when cd-ing into sage's directory  typing make, as
 described
  in the installation guide.

 Seems to unpack m4 right there, and not in another directory.  Thinking of
 questions of
 finding it, tried unpacking in sage's directory.  Ditto.  Something with my
 path?  Won't let
  me put it in root directory.

 Also tried sudo apt-get install m4.  Couldn't find package m4.

Did you put a period at the end of the command line?
Did you setup apt ever?   You may have to edit
 /etc/apt/sources.list

  Shouldn't this stuff come with ubuntu 7.10?

No, it is a compiler tool, and the Ubuntu CD is a
fairly minimal Linux install --it's just what you need
to get work done, not to build new software.  You'll
need these packages:
  g++, make, m4, ranlib

William



 Dean

 ---



 On Wed, Mar 5, 2008 at 4:05 PM, William Stein [EMAIL PROTECTED] wrote:
 
  On Wed, Mar 5, 2008 at 12:31 PM, dean moore [EMAIL PROTECTED]
 wrote:
   Not sending this to the whole group -- no reason.
  
   Sure, will document it let you know when I have something nice.  The
 word
   spline
   seems to occur in two pages I find.
 
  Thanks!
 
 
  
   In other news, I finally dual-booted my computer Microsoft-Linux  was
   trying to install
sage from source.  No m4.  Running Ubuntu 7.10.  I type which m4 in a
   terminal  next
   line is blank.
  
   While it's not a big deal to grab a package  install it, I want to make
   sure I have the
right thing.  Is this the m4 referred at 
   http://en.wikipedia.org/wiki/GNU_m4 ?  What
   I'm guessing; please correct me be I wrong.
  
   Might be another documentation thing.  My first searches led me to a
 machine
   gun,
probably not a component of sage.
 
  Yes, you need the m4 mentioned above.  There may be other packages
  you need -- refer to the README.txt.   Do
 
[EMAIL PROTECTED]:~$ sudo apt-get install m4
 
  to install m4 on ubuntu.   Unfortunately, at present a machine gun
  can't be used in lieu m4 when building Sage.
 
   -- William
 
 
 
 
  
  
  
   On Wed, Mar 5, 2008 at 1:13 PM, William Stein [EMAIL PROTECTED] wrote:
  
   
   
   
   
   
On Wed, Mar 5, 2008 at 10:57 AM, dean moore [EMAIL PROTECTED]
   wrote:
 Thanks!  That worked nicely.

 But should this type of thing be documented, as others may face
 this?

 Dean

   
Sure!  Could you just take the current docs for spline?, modifying
 them
   the
way you wish they were regarding the above issues, and put the result
as a response to this email?
   
William
   
   
   
   
   
   
   
  
  
 
 
 
  --
  William Stein
  Associate Professor of Mathematics
  University of Washington
  http://wstein.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Spline question

2008-03-04 Thread Mike Hansen

Maybe I'm missing something, but what is your question?

--Mike

On Tue, Mar 4, 2008 at 12:00 PM, dean moore [EMAIL PROTECTED] wrote:
 Playing with splines for other reasons, I found what I beat down to the
 following snippet (see attached)

 v = []  # Will hold points
 step  = 0.5 # Fineness of my approximation
  for x in srange(0, 2*pi, step): # Fill parameter *v* with points
v.append((cos(x), sin(x)))   # on the unit circle.

 show(points(v, rgbcolor=(1,0,0), pointsize=20) +
  plot(spline(v), rgbcolor=(0,0,1)))

 Aha!, I thought, I'm being clueless.  No one splines a parametric curve.
 But curious, I did some
 googleing.

 At  http://www.tau.ac.il/~kineret/amit/scipy_tutorial/  there is a nice
 example at Figure 3, as there is at
   http://www.tau.ac.il/~kineret/amit/scipy_tutorial/  at Curve fitting
 and fairing using conic splines.

 Glanced at a couple SAGE pages, 
 http://www.sagemath.org/doc/html/ref/module-sage.plot.plot.html  
  
 http://www.sagemath.org/doc/html/ref/module-sage.plot.plot3d.list-plot3d.html
 , but nothing seemed
 helpful.

 Thanks for any ideas.

 Dean


  


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