Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion calling symbolic expressions, was: Why Sage needs var(...) commands unlike Mathematica?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John Cremona  
View profile  
 More options Nov 7 2008, 6:23 am
From: "John Cremona" <john.crem...@gmail.com>
Date: Fri, 7 Nov 2008 11:23:26 +0000
Local: Fri, Nov 7 2008 6:23 am
Subject: Re: [sage-devel] Re: calling symbolic expressions, was: Why Sage needs var(...) commands unlike Mathematica?
OK so I don't know my alphabet.

2008/11/7 Jason Grout <jason-s...@creativetrax.com>:

> I  think it is very handy to be able to partially evaluate an
> expression.  Do you propose a syntax that lets you effectively do f(5)
> and get a function back?  For example, if I want to plot a level curve
> of f at x=5 presuming that f(x,y)=2*x+3*y, say.  Here are some
> possibilities:

> plot( f(x=5), (y, -10,10))

> plot( f(x=5,y=y), (y, -10,10))

> plot( f(5,None), (y, -10,10))

I prefer this one:

> plot( f(5,y), (y, -10,10))

and it would be even better if y could be replaced by a dummy
variable, like this:  plot( f(f,t), (t,-10,10) )   -- without having
to declare t as a variable too.

John

> g(y) = f(5,y)
> plot(g, (y, -10,10))
> That last one seemed too verbose

> Jason


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.