Rob Beezer wrote: > I took some time the past couple of days to learn the interact setup, > and built a couple of demos for Monday's session of multivariable > calculus. They are posted in the wiki at the end of the section at > > http://wiki.sagemath.org/interact/calculus > > The 2D example plots an ellipse and allows display of vectors such as > velocity, acceleration, unit tangent, unit normal, tangential and > normal components of acceleration. Scalar speed and curvature are > also displayed. Editing the definition of the position function > should allow everything to work correctly, though you need to mess > with figsize to get an aspect ratio of 1 (so orthogonal vectors really > look orthogonal). Also re-discovered bug #4465 where zero-length > arrows don't fail gracefully. >
The bug should be fixed in 3.3. Also, you can use aspect_ratio=1 instead of guessing a figsize. I've tweaked these a bit and put the results up at http://sagenb.org/home/pub/256/ In addition to changing it to use aspect_ratio, I also moved some computations inside of conditionals so that we weren't drawing unnecessary pictures each time. I made a second version that uses fast_float to be (imperceptibly, to me) faster. I found that vectors should be handled by fast_float to create callable vectors. I guess Carl is working on the fast_float code to do stuff like this (arrays in fast_float; I've CCd him in case he isn't subscribed here). Jason --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-edu@googlegroups.com To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en -~----------~----~----~----~------~----~------~--~---