Hi all,

I've recently added new interact examples to the
basics.smart_calculator primer (now version 0.5) and posted it to the
sage days 13 newbie wikipage: 
http://wiki.sagemath.org/days13/projects/sagenewbie.

Here's the code for one example:

x,y = var('x'),var('y')
f = (x-3)*(x+2)
g = (x+4)*(x+20)

@interact
def zoom_on_graph(N=(10, (1..100))):
    intersection_point = solve((y==f,y==g),x,y,solution_dict=True)
    p =plot(f,intersection_point[0][x]-N,intersection_point[0][x]+N)
    q = plot(g,intersection_point[0][x]-N,intersection_point[0][x]+N,
rgbcolor=(1,0,0))
    show(p+q)

Feedback always appreciated!

Cheers,
Erik Jacobson
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-edu?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to