2023-05-08 23:23:23 +0100 | received badge | ● Famous Question (source) |
2021-10-19 18:56:27 +0100 | received badge | ● Great Answer (source) |
2021-04-30 12:51:49 +0100 | received badge | ● Notable Question (source) |
2020-04-28 00:24:43 +0100 | received badge | ● Good Answer (source) |
2019-08-08 19:05:22 +0100 | received badge | ● Nice Answer (source) |
2016-11-02 22:20:04 +0100 | received badge | ● Good Answer (source) |
2016-11-02 22:20:04 +0100 | received badge | ● Nice Answer (source) |
2016-04-06 13:18:21 +0100 | received badge | ● Good Question (source) |
2015-11-11 18:46:15 +0100 | received badge | ● Great Answer (source) |
2015-08-04 14:18:28 +0100 | received badge | ● Nice Answer (source) |
2015-02-27 08:19:34 +0100 | received badge | ● Great Answer (source) |
2015-02-27 08:19:34 +0100 | received badge | ● Guru (source) |
2014-06-29 03:14:50 +0100 | marked best answer | Using Sage Symbolic Functions in Scipy fsolve I need to find the roots of a system of multivariate non-linear (algebraic) functions and Sage's The documentation for Scipy's As a toy example, I've tried the following: It seems like the naive approach but I'm receiving the error |
2014-06-29 03:14:49 +0100 | marked best answer | Linking to ATLAS/BLAS in Cython I've been using GSL's CBLAS for performing "fast" matrix-vector arithmetic in a Cython script but I've been told that ATLAS' CBLAS is faster by a couple of factors. However, I'm having trouble locating the ATLAS libraries and headers in Edit: I found in |
2014-06-29 03:14:43 +0100 | marked best answer | Differentiating Complex Conjugated Functions This is primarily a question of understanding the syntax of some output although there might be a bug hidden underneath. Consider the following code: The answer is supposed to be $d/dx(q\bar{q}) = q_x \bar{q} + q \bar{q}_x$. The second term in the Sage output is correct but I'm having trouble deciphering the first term. Any thoughts? I think I can narrow down the differences even further. Check it out: The independence of order isn't the issue: $q = u + iv$ means that $q_x = u_x + iv_x$, $\bar{q} = u - iv$. So $\bar{q_x} = u_x - iv_x$ and $(\bar{q})_x = (u - iv)_x = u_x - iv_x$. |
2014-05-04 09:46:28 +0100 | received badge | ● Popular Question (source) |
2013-12-24 15:51:15 +0100 | received badge | ● Famous Question (source) |
2013-12-05 16:58:02 +0100 | received badge | ● Notable Question (source) |
2013-09-17 11:03:38 +0100 | received badge | ● Good Answer (source) |
2013-05-06 20:45:13 +0100 | received badge | ● Taxonomist |
2013-04-22 21:48:12 +0100 | received badge | ● Famous Question (source) |
2012-10-18 11:03:22 +0100 | received badge | ● Popular Question (source) |
2012-06-20 16:09:28 +0100 | received badge | ● Notable Question (source) |
2012-06-07 11:26:35 +0100 | received badge | ● Famous Question (source) |
2012-02-19 00:16:58 +0100 | received badge | ● Good Answer (source) |
2012-01-29 00:50:09 +0100 | received badge | ● Good Answer (source) |
2012-01-29 00:50:09 +0100 | received badge | ● Great Answer (source) |
2012-01-29 00:50:09 +0100 | received badge | ● Nice Answer (source) |
2012-01-17 08:15:13 +0100 | marked best answer | Differentiating Complex Conjugated Functions It looks like Sage is (incorrectly? naively?) applying the chain rule to Ginac (and hence Pynac) does not appear to support doing this - see this. However, presumably one could implement a trivial conjugation to the |
2012-01-17 08:11:54 +0100 | marked best answer | Using Sage Symbolic Functions in Scipy fsolve The original scenario involves two variables and only one equation. Because Here is a more compact version using lambda functions and the trick described link:here Since you said you have a large number of variables and equations, here is a slightly more "scale-friendly" approach (but somewhat kludgy): In all cases, the result should look like:
|
2012-01-12 09:59:23 +0100 | received badge | ● Good Answer (source) |
2012-01-12 09:59:23 +0100 | received badge | ● Nice Answer (source) |
2012-01-09 04:58:38 +0100 | received badge | ● Notable Question (source) |
2011-10-26 09:35:15 +0100 | received badge | ● Notable Question (source) |
2011-09-07 16:25:16 +0100 | received badge | ● Popular Question (source) |
2011-08-01 11:42:33 +0100 | received badge | ● Popular Question (source) |
2011-07-25 15:32:42 +0100 | received badge | ● Great Answer (source) |
2011-07-11 19:51:38 +0100 | received badge | ● Popular Question (source) |
2011-07-11 13:22:46 +0100 | received badge | ● Good Answer (source) |
2011-06-30 12:15:47 +0100 | answered a question | Running PARI/GP and Sage Running won't work since This will actually substitute the values |
2011-06-24 20:05:44 +0100 | received badge | ● Good Answer (source) |
2011-06-03 16:25:06 +0100 | edited answer | Replace part of expression Alternatively, you can write your expression out using Sympy, a symbolics package that's included with Sage. (Sympy Documentation) Note that Sympy correctly identifies that You can now treat Note that we didn't have to convert EDIT: You can convert a Sympy expression back to a Sage symbolic expression by doing the following: |
2011-06-03 15:44:58 +0100 | commented answer | How to change _latex_ of log to \ln ? No worries. I think kcrisman's answer is at least starting to head in the direction of what you're looking for. |
2011-06-03 13:59:49 +0100 | answered a question | How to change _latex_ of log to \ln ? I'm not exactly sure how this is a Sage question but in your LaTeX preamble you can write so that whenever you write " |
2011-06-03 13:27:27 +0100 | commented answer | Export to C code Very interesting. I know that some of the Sympy folks have been involved with f2py, a Fortran to Python wrapping utility. Quite interesting that they have a C codegen as well! |