2023-03-31 17:43:26 +0200 | received badge | ● Famous Question (source) |
2023-03-20 22:00:17 +0200 | received badge | ● Notable Question (source) |
2023-03-13 21:05:41 +0200 | received badge | ● Famous Question (source) |
2022-12-06 21:33:21 +0200 | received badge | ● Popular Question (source) |
2021-08-19 02:03:45 +0200 | received badge | ● Famous Question (source) |
2021-06-10 20:08:09 +0200 | received badge | ● Good Question (source) |
2021-01-27 19:55:33 +0200 | received badge | ● Popular Question (source) |
2021-01-27 18:33:09 +0200 | marked best answer | Factoring expression involving exponentials I've got a complicated expression, which looks like: e(4ik+3iω+ip)−e(4ik+2iω+2ip)−e(4ik+2iω)+e(4ik+iω+ip)+2e(2ik+4iω+ip)−e(2ik+3iω+2ip)−e(2ik+3iω) + ... How would you do to factor the exponentials with the same power of k, i.e. e(4ik)(...) + e(2ik)(...) and so on? |
2021-01-27 18:33:09 +0200 | received badge | ● Self-Learner (source) |
2021-01-02 19:27:58 +0200 | received badge | ● Famous Question (source) |
2020-12-16 21:49:22 +0200 | received badge | ● Notable Question (source) |
2020-12-04 18:04:46 +0200 | received badge | ● Famous Question (source) |
2020-09-16 13:23:55 +0200 | received badge | ● Popular Question (source) |
2020-08-21 16:28:57 +0200 | received badge | ● Good Answer (source) |
2020-06-30 16:42:20 +0200 | received badge | ● Nice Answer (source) |
2019-09-21 14:36:31 +0200 | received badge | ● Popular Question (source) |
2019-09-21 14:36:31 +0200 | received badge | ● Notable Question (source) |
2019-07-23 07:54:11 +0200 | received badge | ● Notable Question (source) |
2019-07-09 13:36:17 +0200 | received badge | ● Popular Question (source) |
2019-03-14 18:15:03 +0200 | received badge | ● Good Answer (source) |
2018-12-03 17:49:11 +0200 | received badge | ● Guru (source) |
2018-12-03 17:49:11 +0200 | received badge | ● Great Answer (source) |
2018-12-03 17:46:50 +0200 | received badge | ● Nice Question (source) |
2018-12-03 17:46:47 +0200 | marked best answer | Substitution of several variables Let $f=f(x_1(t),x_2(t))$ be defined as follows: $f = x_1(t) - \mu x_1(t)^2 x_2(t)$. Now, I need to to substitute the term containing $x_1^2(t) x_2(t)$ in $f$ by some new auxiliary variable $x_3(t)$, that is, to obtain $f = x_1(t) - \mu x_3(t) $. However, this code doesn't work: Some ideas? Thanks. This code is motivated by symbolic manipulation with ODEs (think of $f$ as being the right-hand side term in the autonomous ODE system $\dot{x}(t) = f(x(t))$ ). |
2018-11-07 19:40:18 +0200 | commented answer | finding general term of a sequence For the OP: Sage ships with the command |
2018-09-30 07:10:20 +0200 | received badge | ● Popular Question (source) |
2018-09-30 00:49:46 +0200 | commented question | solving an iterated optimization problem
|
2018-09-20 13:17:38 +0200 | commented answer | div, grad and curl once again I couldn't resist to comment that the vector calculus example notebooks are delightful! |
2018-09-19 14:05:45 +0200 | received badge | ● Nice Question (source) |
2018-09-17 21:23:22 +0200 | marked best answer | Computing polyhedron from MIP I want to run the following code (I'm using SAGE v6.10 release version 2015-12-18): However, it outputs the error message:
I noticed that if instead of using real variables I use only integer variables, then it works fine. For instance: outputs:
What do you suggest to overcome this problem? Thanks |
2018-06-03 13:38:45 +0200 | received badge | ● Good Answer (source) |
2018-03-27 20:48:55 +0200 | commented answer | Bug in general power of a matrix Thanks for finding and fixing the bug. Feel free to CC me when you create the ticket. |
2018-02-13 21:01:12 +0200 | received badge | ● Nice Answer (source) |
2017-11-23 16:28:19 +0200 | answered a question | Numerical approximation of multiple integral For numerical integrals in Sage, use numerical_integral. The function integrate is more appropriate for symbolic integration. With your example: The first component is the value of the integral, and the second component is an error estimate. As far as i'm aware, Sage does not expose a multi-dimensional numerical integration function. This can be worked around by a nested call to |
2017-11-20 00:52:53 +0200 | edited answer | Scatter search optimisation
Check those provided by SciPy's optimization and root finding library. All of them are available through the Sage interpreter by calling the appropriate In some (but not all) cases, Sage provides an interface to these algorithms, so that you can directly use Sage symbolic functions as arguments. It is worth mentioning that "out there" you'll find dozens of Python libraries for mathematical optimization (*). Notice that standard Python packages can be installed with the terminal command
and if the installation goes well, it is available the next time you start Sage via (*) See eg.: |