2023-06-28 12:25:18 +0200 | received badge | ● Notable Question (source) |
2018-08-30 08:25:57 +0200 | received badge | ● Famous Question (source) |
2018-05-21 14:55:42 +0200 | received badge | ● Nice Question (source) |
2018-01-11 22:16:54 +0200 | received badge | ● Popular Question (source) |
2015-05-29 20:00:25 +0200 | received badge | ● Notable Question (source) |
2014-02-11 06:58:34 +0200 | received badge | ● Popular Question (source) |
2014-01-10 15:43:02 +0200 | received badge | ● Famous Question (source) |
2013-11-18 13:48:01 +0200 | received badge | ● Good Question (source) |
2013-04-26 08:13:43 +0200 | received badge | ● Famous Question (source) |
2012-09-13 10:54:25 +0200 | received badge | ● Notable Question (source) |
2012-03-12 10:27:57 +0200 | received badge | ● Notable Question (source) |
2012-02-08 08:02:57 +0200 | received badge | ● Popular Question (source) |
2012-01-21 10:44:26 +0200 | received badge | ● Taxonomist |
2011-07-29 14:04:40 +0200 | received badge | ● Popular Question (source) |
2011-01-18 08:02:15 +0200 | marked best answer | solve multidimensional nonlinear system with scipy It's worth mentioning that the scipy multidimensional optimizers like broyden2 are often very sensitive to initial conditions. For example (and using the "f(*z)" syntax to turn the vector of arguments scipy.optimize gives into the arguments f needs: I would actually recommend using the higher-level 'minimize' function which calls some of the scipy routines rather than the internal scipy ones directly: it does a better job wrapping Sage-native objects. http://www.sagemath.org/doc/reference/sage/numerical/optimize.html I'm too lazy to figure out whether that's the global minimum or not, but a quick brute force scan suggests it must have gotten pretty close. (IMHO we should probably wrap OpenOpt or something; optimization is an important enough problem to be worth doing well.) Note that this ... (more) |
2011-01-18 08:02:13 +0200 | marked best answer | solve multidimensional nonlinear system with scipy Try this. does this help? |
2011-01-18 08:01:53 +0200 | answered a question | solve multidimensional nonlinear system with scipy Hello, @ chicago: This variant working well but it is a little to long for bigger systems. Thank you of coarse. @ DSM: it's really funny. I have read you answer this morning and I didn't known how to use minimize with a system of functions. But I hag a numeric lecture today where we have done this, so now I know, how to use minimize method with a system. The variant with lambda function does not work for me. I get wrong solutions compared with the minimize method. I think I will use minimize as often as I can ;) Thanks for quick replies.strong text |
2011-01-18 04:52:56 +0200 | received badge | ● Nice Question (source) |
2011-01-17 17:49:03 +0200 | asked a question | solve multidimensional nonlinear system with scipy Hello, I'm try to solve a nonlinear system of equitations numerically with sage. But I can not see some easy ways to do it. All I have found is to use scipy.optimize library to do it, but I can not use this correctly with sage functions. As a small example: How shell I define my function f to use the broyden2 method well? Or are there some other possibilities? I thought that sage is a all in one solution with algebra and numeric math methods. Can someone help me please. |
2011-01-15 11:12:42 +0200 | asked a question | highlighting the code in notebook I wonder if there is any way to highlight the code (things like "def" "for") in the notebook. I have found some informations about the css fileused by notebook but maybe someone could describe me the way if there is one. Thanks. |
2011-01-15 07:44:57 +0200 | answered a question | Hide the Output Thank you for quick response. I will use the assignment to the _ variable. |
2011-01-15 07:09:19 +0200 | marked best answer | Hide the Output This question was also asked here. The answer is to use assignment: The last example is probably the best one to use most of the time, since " |
2011-01-15 03:01:13 +0200 | received badge | ● Student (source) |
2011-01-14 13:33:10 +0200 | received badge | ● Scholar (source) |
2011-01-14 13:33:10 +0200 | marked best answer | Evaluate with a data set? I think you are looking for the This will substitute as a dictionary. You can also do if you like that syntax. Does that help? |
2011-01-14 13:29:45 +0200 | asked a question | Hide the Output I have just an other question. Is it possible to hide the output from an expression especially in notebook mode? The ";" does not working, as I have seen. Is there a way to do so? Thanks. |
2011-01-14 13:02:36 +0200 | received badge | ● Editor (source) |
2011-01-14 13:02:19 +0200 | answered a question | Evaluate with a data set? Thanks, the second variant is the more comfortable for me, because then I can use a list of sets and put it into a for loop. I think, the is no better way in sage because the way, you can use it in maxima can not be used in python. In maxima you can give the data list after an expression just by typing a comma like: But I'm glad, the way with subs is working fine. |
2011-01-14 11:47:17 +0200 | asked a question | Evaluate with a data set? Can sage evaluate an expression with a given data set like ev function in maxima? For example something like: Thanks for help. |