2019-08-11 14:21:28 -0600 | asked a question | Submitting code to Sage I have written a user-friendly front-end to MixedIntegerLinearProgram (aided by a suggestion of rburing). The code is listed below. I'd be happy to contribute this to the sage code base, but (not being a developer) I'm not sure how. I have tried to follow the conventions that I've found, but I'd welcome corrections and suggestions of where to go from here. Thanks, Mike |

2019-08-11 14:12:28 -0600 | commented answer | Is there a way to temporarily turn off sage's type checking? Thanks! This does what I need. |

2019-07-21 08:00:19 -0600 | received badge | ● Nice Question (source) |

2019-07-20 19:24:18 -0600 | asked a question | Is there a way to temporarily turn off sage's type checking? I'm having some difficulties writing sage code to solve linear programming problems using "natural variables", by substituting for them the variables required for MixedIntegerLinearProgram. The code for "minimize_desired" is what I'd like to do, but it fails during the substitution with the error message "TypeError: no canonical coercion from Linear functions over Real Double Field to Symbolic Ring". What I'd like is for sage to just do the substitution and ignore the lack of coercion. The code for "minimize_works" works, but I got past the type checking by changing everything to strings and then back into a sage object, which feels like a terrible kludge. However this does illustrate that, despite sage's worries about coercion, everything ends up fine for MixedIntegerLinearProgram. Is there a way to turn off sage's type checking and just do the substitution? Thanks, Mike Note: I simplified the examples below by eliminating all the code that dealt with constraints. |

2019-01-08 05:17:34 -0600 | received badge | ● Notable Question (source) |

2018-09-10 18:20:38 -0600 | received badge | ● Popular Question (source) |

2017-12-03 22:12:16 -0600 | commented answer | How can I get mpmath to work with sage variables? I'm attempting to do a mix of symbolic and high-precision-numeric computations in a loop. It appears (from my example above) that merely importing mpmath precludes doing Specifically, it appears that the "ordinary" sqrt works with symbolic variables, but that the mpmath sqrt does not. Is there a workaround? |

2017-12-02 17:10:43 -0600 | asked a question | How can I get mpmath to work with sage variables? In Sage, the following code produces error messages ending with "TypeError: cannot evaluate symbolic expression numerically": If I remove the line "from mpmath import *", it prints "sqrt(a)" as expected. How can I get mpmath to work with sage variables? |

2017-06-17 14:52:53 -0600 | answered a question | error in creating relocatable "runtime binaries only" While I don't know how to fix the compilation error that I asked about, I have discovered a workaround. My goal is to get a small working relocatable copy of Sage. As compiled without the "Runtime binaries only", the SageMath folder is 5.3 GB, which is bigger than I'd like. After relocating and the initial run of Sage (when the paths are patched), I ran the following commands from the SageMath directory. The result was a working (as far as I can tell) copy of Sage, but SageMath is now only 1.5GB, which is much smaller. This will suffice for my needs, although I would much prefer doing this by fixing the compilation error. |

2017-06-15 15:24:49 -0600 | commented answer | How can I display a plot from a script? Thanks! I would also add an & to the end of the display command, so that the script would continue to run, so: |

2017-05-27 13:40:16 -0600 | received badge | ● Editor (source) |

2017-05-27 13:37:44 -0600 | asked a question | How can I display a plot from a script? If I type in sage, I get the expected plot, displayed as a png file by my default image viewer. If instead I put the line in a file test.sage and run from the command line, I get typed on the command line, but no displayed plot. How do I display a plot from a script? |

2017-05-24 21:01:57 -0600 | received badge | ● Scholar (source) |

2017-05-24 20:55:23 -0600 | received badge | ● Supporter (source) |

2017-05-24 20:51:55 -0600 | asked a question | error in creating relocatable "runtime binaries only" If I clone github.com/sagemath/binary-pkg.git, change branch from develop to master in sage.yaml, and run I get error messages in stage-sage saying What am I doing wrong? Or should I file a bug report? Or where can I find documentation on what commands I can run to remove unnecessary files? (E.g. I'd expect that some directories could be deleted, and that some binaries could be stripped.) Thanks! |

2017-05-24 20:37:55 -0600 | commented answer | How can I purge unneeded files after compilation? That works - thanks! |

2017-05-19 00:41:53 -0600 | received badge | ● Student (source) |

2017-05-18 19:43:42 -0600 | asked a question | How can I purge unneeded files after compilation? After compiling sage-7.6 from source, I get a folder of size 8.6 GB. I'd like to keep just the files necessary to run sage, but there is no "make clean". How can I purge unneeded files? On a related note, the readme.md file contains instructions for sage --bdist, which appears to have been removed for quite some time. Who might I ask to have that text removed? |

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.