2015-03-09 11:13:24 -0500 | received badge | ● Notable Question (source) |

2013-02-22 12:30:15 -0500 | received badge | ● Popular Question (source) |

2011-12-12 06:33:17 -0500 | answered a question | Is there a way to solve a differential equation in sage with adaptive step size? If you had your solution already coded for "desolve_system_rk4" you could try "desolve_system_odeint" which has the same syntax and uses an implicit method by default (you can change the method, of course). It should be much faster than the rk4. |

2011-10-25 10:13:56 -0500 | received badge | ● Student (source) |

2011-10-25 04:11:03 -0500 | asked a question | Publishing worksheets in Wordpress, Blogger... Hi, In a public SAGE server, it is possible to "publish" it so that non-registered users can view it, edit it after logging and downloading it. It would be nice to be able to publish it in wordpress, blogger or other blogging sites in a more or less simple way. Which is the best way to do it? Thanks in advance |

2011-10-08 00:33:45 -0500 | received badge | ● Good Answer (source) |

2011-10-02 21:51:06 -0500 | received badge | ● Nice Answer (source) |

2011-09-26 22:31:22 -0500 | answered a question | fitting a curve to a straight line In my opinion the easiest way to do the fit is to use the find_fit function, which is standard in SAGE. For example: When you have a huge number of points and you want just a polynomial fit, I found that it is (numerically) better to use the polyfit function from numpy: |

2011-09-21 00:20:29 -0500 | received badge | ● Supporter (source) |

2011-09-16 00:15:36 -0500 | received badge | ● Editor (source) |

2011-09-16 00:14:58 -0500 | asked a question | Cannot insert cells in Sage 4.7 with ubuntu 11.04 Hi, We recently found that our SAGE 4.7 in Ubuntu 11.04 has the following problem with the notebook. We use firefox 6 and everything works fine except that we cannot insert cells, even if the blue line apperas. If we press ALT+ENTER, then we can evaluate the input and produce a new cell, but we would like to be able to insert cells as usual. Thanks in advance, Joaquim |

2011-09-12 22:45:57 -0500 | commented answer | tseriesChaos package for R from Sage Notebook I have now noticed that after version 4.7.1 (maybe before) it is not necessary to recompile SAGE. |

2011-09-06 20:32:45 -0500 | answered a question | coupled ode's Hi, I don't know your problem, but sometimes it is possible to introduce the differential equation for A(t) in the set of equations that you pass to the ode solver? Then you don't have to interpolate the solutions. By the way, you can also try desolve_odeint, which is faster and can deal with compiled code? Good luck! Joaquim |

2011-06-17 07:59:43 -0500 | received badge | ● Enlightened (source) |

2011-06-16 13:26:18 -0500 | received badge | ● Good Answer (source) |

2011-06-16 07:54:54 -0500 | received badge | ● Nice Answer (source) |

2011-06-15 22:53:06 -0500 | answered a question | Call C/C++ Code You can use your C/C++ code directly, using the Ctypes library, which is included in SAGE. You can find a nicely documented example on how to call your libraries on Numerical Sage documentation: |

2011-06-01 09:35:45 -0500 | received badge | ● Good Answer (source) |

2011-06-01 06:19:39 -0500 | received badge | ● Nice Answer (source) |

2011-05-31 22:18:00 -0500 | answered a question | tseriesChaos package for R from Sage Notebook First of all you have to install the package tseriesChaos, which is a R package and not a regular Sage package. As far as I know, to install R packages you need to have compiled version of sage. You go to Sage website, download source, follow the instructions, wait for a while (depending on your hardware) and that's all. Then type: and the package will install downloading and compiling packages automatically. The final message will be so restart Sage. After that load the library and it should load without problems. In my opinion, if you just want to use the 'tseriesChaos' package it might be easier to use R directly. With the steps above you, after doing "sage -R" from the shell you can do the following example from tseriesChaos package: annaquim@aljibe:~$ sage -R You can also consider reprogramming the routines using sage or the included numpy/scipy. |

2011-03-29 23:05:10 -0500 | answered a question | How can I speed up symbolic function evaluation? In my opinion, the funcion desolve_odeint (in versions >=4.6) provides what you want. Basically it takes a symbolic expression as the vector field, it compiles it to a fast float expression and then integrates it using the scipy.odeint solver. I have never used with hundreds of variables, but let us know your experiences... In your case I would do the following: and if you want a nice plot |

2011-03-09 04:11:51 -0500 | received badge | ● Nice Answer (source) |

2011-03-04 12:26:51 -0500 | received badge | ● Teacher (source) |

2011-03-04 12:26:51 -0500 | received badge | ● Necromancer (source) |

2011-03-03 00:57:40 -0500 | answered a question | Numeric multivariable ode solver in Sage? Hi, Another option is to use the function desolve_odeint (from version 4.6 on, see the docs on desolve_odeint?), which uses the odeint solver internally, but takes as an input symbolic funcions . For instance, to integrate the Lorenz attractor, you would do to plot the attractor, simply: I do not know what you mean exactly by the double pendulum, but here it is something similar: and a nice plot is here Joaquim Puig |

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.