On Wed, 2 Sep 2009, calcp...@aol.com wrote:

> That's a good question!  I've written functions in MATLAB (well Octave
> actually) no problem.  But I get confused where Python leaves off and Sage
> kicks in when witting functions here.

The way to think about this is that Sage is just a huge Python library, 
and writing a function in Sage (in the programming sense, not the 
mathematical sense) is exactly the same as writing a function in Python.

>From the command line/notebook, there is some preparsing that goes on, but 
it's stuff like 5 -> Integer(5) so that 1/5 doesn't become 0.

> Could someone please  give me a barebones example, soup to nuts, of a
> Python vs. Sage vs. Other (Maxima and such) function that does, say, Newton's
> Method for finding Roots?
>
> 1) what does the function look like
> 2) how do you invoke it
> 3) what's the input
> 3) where's the output
> 4) etc
>
> TIA,
> 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 9/2/2009 5:57:37 P.M. Eastern Daylight Time,
> thephantom6...@hotmail.com writes:
>
> No.  The call is CSquare(2,3,4).  Just trying to setup a  random quad.
> Could this function be done with just Sage?  I need  coeficients, each
> term, sides of the equation,  etc.
>
>
>
>
> >
>

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

Reply via email to