On Dec 18, 2008, at 4:45 AM, Fernando wrote:
> > Hello, > > I am a MATLAB user which it is considering to move to SAGE. Mainly, I > use MATLAB for algorithm prototyping, simulations and data processing. > > For those tasks, I usually implement the code using the vectorized > functionalities of MATLAB. This is the most efficient way to code in > MATLAB. For example, if I want to implement the equation: > > z = y*sin(x) > > for a specific values of x and y. I should code: > > y = [3 6 7]; > x = [1 2 3]; > z = y.*sin(x); > > Could someone tell me which is the best way to code this kind of > operations in SAGE? > The most of the facilities for this are provided by NumPy and SciPy. Over at the SciPy web site there is a guide for MATLAB users, it's probably a good idea to look at that and the Guide to NumPy over at that site. I'm fairly certain the Guide to NumPy discusses what you're looking for. http://www.scipy.org/NumPy_for_Matlab_Users > Also, do you think that SAGE is the appropiate tool for the tasks like > algorithm prototyping, simulations and data processing? > Yes. Through SciPy and NumPy it provides numerics close to MATLAB speeds, Cython and other tools (see SciPy docs) provide a way to speed up important speed critical sections and the rest of SAGE gives you a way to derive the equations you want to simulate. Plus, Python has a lot of tools that you can install into Sage for various things like database access. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey --~--~---------~--~----~------------~-------~--~----~ 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-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
