2015-03-09 17:13:24 +0200 | received badge | ● Notable Question (source) |
2013-02-22 19:30:15 +0200 | received badge | ● Popular Question (source) |
2011-12-12 13:33:17 +0200 | 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 17:13:56 +0200 | received badge | ● Student (source) |
2011-10-25 11:11:03 +0200 | 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 07:33:45 +0200 | received badge | ● Good Answer (source) |
2011-10-03 04:51:06 +0200 | received badge | ● Nice Answer (source) |
2011-09-27 05:31:22 +0200 | 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 07:20:29 +0200 | received badge | ● Supporter (source) |
2011-09-16 07:15:36 +0200 | received badge | ● Editor (source) |
2011-09-16 07:14:58 +0200 | 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-13 05:45:57 +0200 | 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-07 03:32:45 +0200 | 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 14:59:43 +0200 | received badge | ● Enlightened (source) |
2011-06-16 20:26:18 +0200 | received badge | ● Good Answer (source) |
2011-06-16 14:54:54 +0200 | received badge | ● Nice Answer (source) |
2011-06-16 05:53:06 +0200 | 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 16:35:45 +0200 | received badge | ● Good Answer (source) |
2011-06-01 13:19:39 +0200 | received badge | ● Nice Answer (source) |
2011-06-01 05:18:00 +0200 | 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-30 06:05:10 +0200 | 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 11:11:51 +0200 | received badge | ● Nice Answer (source) |
2011-03-04 19:26:51 +0200 | received badge | ● Teacher (source) |
2011-03-04 19:26:51 +0200 | received badge | ● Necromancer (source) |
2011-03-03 07:57:40 +0200 | 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 |