2024-01-19 10:31:36 +0200 | received badge | ● Notable Question (source) |
2024-01-19 10:31:36 +0200 | received badge | ● Popular Question (source) |
2023-11-25 00:02:34 +0200 | received badge | ● Notable Question (source) |
2023-11-25 00:02:34 +0200 | received badge | ● Popular Question (source) |
2023-02-22 18:33:31 +0200 | received badge | ● Notable Question (source) |
2022-06-21 18:51:49 +0200 | received badge | ● Notable Question (source) |
2021-12-06 15:23:34 +0200 | received badge | ● Famous Question (source) |
2021-04-08 09:31:01 +0200 | received badge | ● Notable Question (source) |
2021-04-08 09:31:01 +0200 | received badge | ● Popular Question (source) |
2021-01-29 10:01:29 +0200 | received badge | ● Notable Question (source) |
2021-01-29 09:55:12 +0200 | received badge | ● Popular Question (source) |
2020-12-04 18:04:55 +0200 | received badge | ● Notable Question (source) |
2020-08-03 16:30:53 +0200 | received badge | ● Notable Question (source) |
2020-06-30 03:44:00 +0200 | received badge | ● Popular Question (source) |
2020-02-16 09:54:43 +0200 | received badge | ● Popular Question (source) |
2020-01-23 15:08:55 +0200 | received badge | ● Popular Question (source) |
2020-01-23 15:08:55 +0200 | received badge | ● Notable Question (source) |
2019-11-27 16:30:46 +0200 | asked a question | How to avoid scientific notation of numbers in the Mathematica interface I use the mathematica interface to compute numerical values of an extended hyper-geometric function MeijerG for real arguments. This function is provided only by Mathematica: For real arguments x >= 0.00001 I get useful numeric results, e.g. for x =0.00001. However, for 0< x < 0.00001 this method fails. With a small argument x and With this small argument, I obtain: Obviously, this behavious is caused by the python interpreter: It converts pure decimal presentation of numbers (see previous example) into their scientific presentation. And, as I have learned from contributions in the Mathematica's stack exchange, Mathematica doesn't accept formatted numbers like ScientficForm, etc, for numerical evaluation of functions. Thus, Mathematica lets requested numeric evaluation undone. I haven't found any hints how to prevent python from expressing the argument in scientific format. Is it possible by any means to circumvent this problem? |
2019-11-27 15:07:33 +0200 | received badge | ● Scholar (source) |
2019-11-17 20:02:42 +0200 | commented answer | SageMath cannot access Mathematica It works! Many many thanks for your help. I suggerst to include this important advice in the official sageMath documentation. |
2019-11-17 13:41:42 +0200 | asked a question | SageMath cannot access Mathematica I have installed Mathematica Version 11.3 at a Linux system (openSUSE Leap 15.1) on a partition "math", i.e. separated from the Linux home and system partition. I have tried to send Mathematica expressions from SageMath to Mathematica in the manner described in the SageMath reference by using a SageMath Notebook or its command line interface. They are rejected with:
In the course of the installation of Mathematica I added the path to the math command line interface of Mathematica to the common PATH-sequence. Therefore I am able to access the Mathematica command line interface by simply entering math or the command:
using a bash-terminal outside SageMath. I have checked that I can do it without the need for specifying the complete path to math. However, entering the same command within a Sage-session by using the Python's OS- interface is only successful if the full path to math is specified:
The error appearing otherwise is the same as that one returned by the above described trials to send mathematica objects. The protocol shows that the mathematica objects are sent to Mathematica without detailed path info. Thus, obviously the SageMath-Mathematica interface does not recognize the complete path info that is availabe in the basic Linux system. Maybe the missing info is caused by the fact that Mathematica is located on a remote partition. Therefore my question: Is it possible to provide sageMath with the needed full path to math? Unfortunately it is not possible to attach the complete output of SageMath. |
2019-10-14 21:16:47 +0200 | received badge | ● Taxonomist |
2019-01-12 18:00:58 +0200 | asked a question | How to configure jupyter for Sage-specific use? I am an absolute beginner in using jupyter-notebooks. Since SageMath version 8.5 the user is asked to be prepared for using jupyter as the standard notebook in the future. So, in Linux I activate jupyter with ./ sage -n jupyter and do some experiments. In this way, obviously, SageMath activates an internal jupyter package via an internal notebook-interface (and not via an external jupyter installation e.g. in anaconda). I tried also to edit python code within a jupyter cell. I got some unexpected errors, so editing code in jupyter cells seems to be problematic. Also, I want to figure out, why editing python code within a jupyter cell changes the color marks of some 'if' statements to red? Sometimes, after re-opening a closed jupyter session appears as plain text only, i.e., without cells. My simple question is therefore: Is there any documentation available for the sage-specific use of jupyter (e.g., meaning of color code for the elements of the python language, extra necessary import of additional sage objects for jupyter, configuration of jupyter, etc)?. |
2018-06-05 08:10:51 +0200 | received badge | ● Self-Learner (source) |
2018-06-05 08:10:51 +0200 | received badge | ● Teacher (source) |
2018-06-05 08:10:45 +0200 | received badge | ● Nice Question (source) |
2018-06-04 21:57:09 +0200 | answered a question | convert charpoly()-generated characteristic polynom to symbolic expression I just found that characteristic polynomals of matrices can also be converted to SR by substituting one of their symbols with subs. |
2018-06-04 20:51:16 +0200 | commented answer | convert charpoly()-generated characteristic polynom to symbolic expression Thank you very much for the hint. I need the conversion to SR in order to simplify the expression with canonicalize_radical() or with factor(). This seems not be possible if I apply them on the unconverted expression (unimplemented error or attribute error). I just found that characteristic polynomals of matrices can also be converted to SR by substituting one of their symbols with subs. |
2018-06-04 20:21:46 +0200 | answered a question | convert charpoly()-generated characteristic polynom to symbolic expression Thank you very much for the quick response, However, I want to calculate the characteristic polynom of a matrix containing symbols, e.g.:
|
2018-06-03 19:33:33 +0200 | asked a question | convert charpoly()-generated characteristic polynom to symbolic expression A characteristic polynom that is generated by the procedure charpoly() has the type:
How can I convert it to one of type 'symbolic expression' without doing 'copy and paste'? |
2018-04-04 11:18:52 +0200 | received badge | ● Popular Question (source) |
2018-03-22 21:37:27 +0200 | commented answer | Mathematica misinterprets some underscored symbolic variables I agree, The best method to circumvent this problem is substituting the "_"- symbol by unique identifiers in sage and subsequently replacing them in Mathematica by its appropriate underscoring. key combination. This workaround should be applied to all kinds of underscored symbols (not only for underscored numbers). |
2018-03-21 14:06:46 +0200 | received badge | ● Popular Question (source) |
2018-03-21 08:25:24 +0200 | asked a question | Mathematica misinterprets some underscored symbolic variables Following examples show that the interface between sage and Mathematica misinterprets symbolic variables if they are underscored with numbers: I use sage-8.1 and Mathematica 11.2.0 at Linux OpenSUSE Leap v42.3. In this forum I haven't found any other comment regarding this funny behaviour. |
2017-05-09 16:48:50 +0200 | asked a question | Interactive solving differential equations with MAXIMA's desolve I am using Maxima's "desolve" to handle a system of linear differential equations.
During processing, Maxima arrives at an intermediate expression (in my case this is a complicated argument of a sqareroot)
that may be positive, negative or zero. Maxima asks me interactively if this expression is negative, positive or zero.
If I use "desolve" directly within the Maxima's notebook, I can give my answer interactively
(e.g., "pos") to Maxima. Consequently, Maxima can continue processing immediately.
Thus, in Maxima's notebook there is no need to use an 'assume' statement that includes
the whole complicate expression in question.
On the contrary, processing this system via Maxima's 'desolve ' at a sage's notebook is very inconvenient,
since, according to sage's documentation, one can answer such questions only via assumes given prior to 'desolve'.
Moreover, in the treated case Maxima ignores such 'assume'-statements.
Thus, solving my equation system at Maxima via sage turns out to be impossible. Here is a simlpe executable example for interactive working with Maxima. (Members of Maxima's discussion forum gave this example to me for demonstration) I tried to answer this question interactively at a sage- notebook. Unfortunately, This leads to a deadlock in the sage-platform (version 7.4). |
2016-09-06 00:17:12 +0200 | commented answer | ATAN2 AssertionError while plotting complex squareroot function I have checked this in the cloud and also in my private 7.3 version. I made additional checks: An integer delta=1 is ok, but unfortunately a real delta=1.0 results in the same error. Also delta=real(1) is ok, but not delta=real(1.0). Thus, the problem persists, which obviously is caused by a wrong type conversation. |
2016-09-05 21:59:22 +0200 | asked a question | ATAN2 AssertionError while plotting complex squareroot function
|
2016-04-25 00:09:59 +0200 | asked a question | store python code from a notebook cell to a file During a notebook session I enter a series of SAGE-statements (python code) in a notebook cell. How can I let SAGE store/save this code automatically (not via copy&paste) in a file? The purpose is to reload the stored code in a cell of another session for later processing . I tried to perform this via the "save-session" -command. However, this results in a data volume of several MB, which is much larger than the total length of the code of the session. This I want to avoid. |
2015-11-09 17:01:13 +0200 | received badge | ● Student (source) |
2015-11-09 14:48:26 +0200 | asked a question | Substituting derivatives in Taylor expansions Within Taylor expansions, as well as in results of 'Derivative'- operations, derivatives are marked by symbol "D[ ]" . I want to substitute them by other symbolic expressions/functions in order to get the usual presentation of derivative symbols via Latex. The following testprogram demonstrates that derivatives triggered by the "derivative"-operation can indeed be substituted by user-defined symbols, but not derivatives in Taylor expansions. I run this program within In a SAGE6.8 notebook-session. The output is: After a "derivative"-operation, substituting dt1 by dTedx works: After Taylor expansion, substituting dt2 by dTedx does not work: What is the reason for this difference? Maybe, I merely must access the derivative expression within a Taylor expansion in a different way. Thus: which is the correct way to do this? |
2014-11-29 23:34:34 +0200 | commented answer | How to define more complicated differential expressions in Sage? I want to add a remark concerning the real problem with D0(y). You can substitute the default output of an derivative-operation, e.g. D[0] (fxx)(z) by any symbolic function you want by using the 'derivative_func'- option of 'function'. Following Example using symbolic function definition
var('z') dfxdz=function('dfxdz',latex_name='\frac{\operatorname{d}{x}}{\operatorname{d}{z}}') def dfx(self,args,*kwds):return dfxdz(z) fxx=function('fxx',latex_name='x') fx=function('fx',derivative_func=dfx,latex_name='x') For the input fx(z).derivative(z) #with derivative_func you get the output : dfxdz(z) For the input fxx(z).derivative(z) #without derivative_func you get the output: D[0] (fxx)(z) |
2014-11-25 19:08:57 +0200 | answered a question | How to define more complicated differential expressions in Sage? Perhaps the answer I have given for the question "latex typesetting for derivatives" at 31.Oct. can help you. One can utilize the option "derivative_func" of Function to let perform a list containing the requested results of the partial differentiations during processing a product rule or a chain of differentiations. |
2014-10-31 19:39:46 +0200 | received badge | ● Editor (source) |
2014-10-31 19:28:36 +0200 | answered a question | latex typesetting for derivatives like g' Obviously it is possible to assign any latex text to derivatives by using
the Below I have added an example that I have executed in Sage 6.3. (Note: edited to make |