Happy Cakeday, r/sagemath! Today you're 10
👍︎ 6
💬︎
📅︎ Dec 04 2021
🚨︎ report
Emacs and Sagemath . SageMath is a free open-source mathematics software system that builds on top of NumPy, SciPy, matplotlib, Sympy, Maxima, GAP, FLINT, R etc wiki.sagemath.org/Emacs
👍︎ 3
💬︎
📅︎ Oct 25 2021
🚨︎ report
Solving CRT in Sagemath

Hello All, I am quite new to sage math and working on verifying an answer of mine using the Chinese Remainder theorem.

https://preview.redd.it/1zeblazoume71.png?width=242&format=png&auto=webp&s=167d08b769ef5c2fba1cb8eabc624c44400edae2

Could anyone help me structure the equation for it to work in SageMath?

👍︎ 2
💬︎
📅︎ Jul 31 2021
🚨︎ report
How to generate a polynomial from a list of coefficients while using SageMath as a library?

If I have a list [1,5,4,5,22,0,0,1]

And I need to generate a 7th degree polynomial from this, how should I proceed?

I tried using the methods given online, but it either crashes or gives me a clearly wrong answer ( I'm trying to find all the real roots by using real_roots() or roots() )

Any help would be appreciated.

👍︎ 2
💬︎
📅︎ Apr 17 2021
🚨︎ report
OEIS Sequence with SageMath (YouTube Short) youtube.com/watch?v=OhTyl…
👍︎ 4
💬︎
📅︎ Jun 28 2021
🚨︎ report
How do I install Sagemath in Jupyterlab?

i want to install sagemath in jupyterlab, I am running Pop_OS 20.10

👍︎ 2
💬︎
📅︎ Apr 26 2021
🚨︎ report
Intro to Graph Theory with SageMath youtu.be/rU0fvGRltWs
👍︎ 16
💬︎
📅︎ Apr 27 2021
🚨︎ report
Sagemath and the order of curve25519

I was playing with curve25519 in sage earlier today, and noticed that, the order of the elliptic curve group for 25519, is actually larger than the prime field over which it's defined:

ec = EllipticCurve(GF(2**255-19), [0,486662,0,1,0])
ec.order()     
57896044618658097711785492504343953926856930875039260848015607506283634007912


((2^255)-19)

57896044618658097711785492504343953926634992332820282019728792003956564819949

So the ec group contains about 221938542218978828286815502327069187963 more elements.

I understand that the ec group and the field are two different things:

ec group: pairs of points that satisfy the curve equation.

field: Galois field over which we define the curve mod p for certain operations.

I thought the field would put bounds on the curve order too, did I just make a silly assumption?

If I define the curve over a small field, like 17, the number of points is actually only 16.

👍︎ 12
💬︎
👤︎ u/john_alan
📅︎ Nov 30 2020
🚨︎ report
Intro to SageMath for Non-Programmers youtu.be/Cb2E0bznd-w
👍︎ 12
💬︎
📅︎ Jan 16 2021
🚨︎ report
Sagemath [college]

I need to use Sage for the number theory course that I'm taking this semester, and I've been finding it difficult to use. I'm in my third week this semester and I've been unable to figure out how to use it for anything other than typing the commands from the textbook directly into sagecell.sagemath.org. Is there an easy guide to Sage that would help me use this software? I want to be able to a) figure out what the commands that I'm typing mean, b) figure out how to do things that aren't explicitly laid out for me by my textbook and professor (for my more advanced homework assignments) and c) have a solid foundation in Sage not just for this course but for if I need to use it in subsequent courses or when I go to grad school in a few years.

👍︎ 6
💬︎
📅︎ Sep 08 2020
🚨︎ report
How to import SageMath on Repl.

Hi,

I want to use the SageMath library on repl. (online IDE). Specifically I want to use the factor() function.

Anyone know how to import this successfully?

👍︎ 4
💬︎
📅︎ May 06 2020
🚨︎ report
Mathematical software: sagemath and mathematica

In my university we are learning to use mathematica for calculations such as flow, curvilinear integrals and limits with multiple variables. Personally I prefer to use open source software, so I was trying sagemath. Now for example, an integral of a function extended to a region of space, on mathematica I can perform it with 2 simple operations. Is this possible with sage? I'm reading the documentation, but I found only integral to one dimension. Here is an example:

https://preview.redd.it/r22epqdfq3m51.png?width=577&format=png&auto=webp&s=09030ae48d3f6cf88eafd68d19f6eb31a63d5114

👍︎ 5
💬︎
👤︎ u/TeoCol777
📅︎ Sep 09 2020
🚨︎ report
Beginner to sagemath

Hello everyone!

During the course of my physics degree, I've seen a number of my friends use mathematica to easily solve equations. However, I can't afford a license for it and frankly, I wish to support open-source software and hence I'm planning on using sagemath.

I've been using python mostly (scipy, numpy, sympy, matplotlib) to solve equations and especially sympy for CAS. I was wondering if there is any difference in using sagemath as opposed to something like sympy. Also, is it as easy to solve equations in sagemath as it is in mathematica.

Thanks in advance! :)

👍︎ 4
💬︎
👤︎ u/kn0xchad
📅︎ Oct 09 2020
🚨︎ report
SageMath vs Mathematica

What do you guys think will be the future of CAS software? Open source like SageMath or closed like Mathematica? I am asking because I am still undecided on which one I should learn to benefit me 10 - 20 years from now. If you could share with me the reasons you choose Sage over Mathematica I would appreciate it. Thanks.

👍︎ 9
💬︎
👤︎ u/alexice89
📅︎ Sep 10 2020
🚨︎ report
Help with a probability problem SageMath seems to not want to simplify

I'm trying to solve a relatively straightforward problem. I would like to figure out when p(b, r) = (b / (r + b)) * ((b - 1) / (r + b - 1)) = 1/2, given the constraints that r and b are integers, and r + b is greater than some minimum value, which we can call m.

I started by solving for b in terms of r with solve([p(b, r) == 1/2], b). That gives me b = r + 1/2*sqrt(8*r**2 + 1) + 1/2, so I make a function blue(r) = r + 1/2*sqrt(8*r**2 + 1) + 1/2. So far so good. The troubles start now when I try to solve for when r + blue(r) >= m.

If I try solve([r + blue(r) >= 10**12], r), it gives me

[[4*r + sqrt(8*r^2 + 1) - 1999999999999 == 0],
 [4*r + sqrt(8*r^2 + 1) - 1999999999999 > 0]]

I can try to solve for r in the first one, but Sage seems to not want to do it. Given solve([4*r + sqrt(8*r^2 + 1) - 1999999999999 == 0], r), it just returns [r == -1/4*sqrt(8*r^2 + 1) + 1999999999999/4]. It won't isolate the r. That's the first problem.

If I take it to Wolfram|Alpha, it can solve it, and I get a value of 1/2 * (1999999999999 - sqrt(1999999999998000000000001)). I can bring that back to Sage. For my purposes, I did:

lowerBound = floor(1/2 * (1999999999999 - sqrt(1999999999998000000000001))) + 1

For convenience's sake, lowerBound is 292893218814. I would now like to solve for the first value of r that is greater than or equal to 292893218814 where p(b, r) = 1/2 and b and r are integers.

I have tried all sorts of things like assume(r > 292893218814), assume(r, integer), assume(b, integer), etc, but it will always either not work or tell me my assumptions are redundant, when they can't be redundant or it would give me the answer I'm looking for without them.

I think I'm just misunderstanding some fundamental things about how SageMath works. If anyone has any tips, I'd greatly appreciate it.

P.S. I'd rather not have any help with the problem itself. I just want to be better at using SageMath effectively.

Thanks guys :)

👍︎ 4
💬︎
📅︎ Oct 26 2020
🚨︎ report
Video I Made on SageMath Help Features and Other Resources - May Be of Interest Here youtu.be/ZD77uTqbg-4
👍︎ 10
💬︎
📅︎ Aug 30 2020
🚨︎ report
SageMath – Open-Source Mathematical Software System sagemath.org/
👍︎ 13
💬︎
👤︎ u/qznc_bot2
📅︎ Jun 13 2020
🚨︎ report
My SageMath setup, using vim-Jupyter plugin for interaction.
👍︎ 10
💬︎
👤︎ u/noscore6
📅︎ Jun 08 2020
🚨︎ report
SageMath 9.2 for Windows?

Hi everyone,

I noticed that SageMath 9.2 has been released for MacOS, but Windows is still on SageMath 9.1. Does anyone know when SageMath 9.2 will be released for Windows? Or has it been released and I'm just missing something?

Thanks!

👍︎ 2
💬︎
👤︎ u/meatball59
📅︎ Nov 17 2020
🚨︎ report
SageMath – Open-Source Mathematical Software System sagemath.org/
👍︎ 26
💬︎
👤︎ u/yogthos
📅︎ Jun 13 2020
🚨︎ report
Compiling sagemath from source?

I've been trying to compile the sagemath package. It failed on gcc 6, so I downloaded gcc-5 from AUR, and tried to compile with that. Another fail. Has anybody successfully managed to compile sagemath on Arch?

👍︎ 12
💬︎
👤︎ u/amca01
📅︎ Jul 21 2016
🚨︎ report
Does Sagemath work with 10.13.2, which version of Sagemath?

Does Sagemath work with OSX High Sierra 10.13.2, which version of Sagemath?

👍︎ 2
💬︎
👤︎ u/mavavilj
📅︎ Feb 22 2018
🚨︎ report
Founder of the SageMath project says it is failing. sagemath.blogspot.com/201…
👍︎ 151
💬︎
👤︎ u/alb1
📅︎ Oct 01 2014
🚨︎ report
SageMath v8.8 is out! Here is the installation guide. doc.sagemath.org/html/en/…
👍︎ 14
💬︎
📅︎ Jul 17 2019
🚨︎ report
William Stein: What is SageMath's strategy? sagemath.blogspot.com/201…
👍︎ 38
💬︎
👤︎ u/nikoma
📅︎ Nov 17 2015
🚨︎ report
Nixpkgs: how to install Jupyter notebook to work with SageMath from a non-NixOS distro?

I'm using openSUSE Tumbleweed and I hope this Nix question is appropriate for here because I have SageMath 8.4 installed with Nix and I've been informed that the old SageMath notebook launched by sage -notebook (or just notebook() within a SageMath shell) is going to be removed so I've been trying to run SageMath in a Jupyter notebook. I thought, based on my past hiccups with Matplotlib that I should install Jupyter like this:

nix-shell -p gobjectIntrospection gtk3 'python27.withPackages(ps : with ps; [ matplotlib sage jupyter ])'

(in the hope that doing so would cause Matplotlib to also be available) that didn't work, with this error: https://gist.github.com/fusion809/503c3ad194b164b552056833af4d835d (can't post it here, the ` in it confuses the formatting, making what comes after it not formatted as code). So, therefore, I decided to install it with nix-env -i python2.7-jupyter instead, which ran correctly at the command-line, but when I launched Jupyter through SageMath, with the command sage -n jupyter SageMath launched Jupyter, which was opened in my web browser, when I selected a new SageMath notebook I saw a kernel error message: https://gist.github.com/fusion809/3885dd41b16c5fe8500a2d3ad80fcfc7, which seems oddly reminiscent of the above error message I received from the nix-shell command I tried earlier. I have been told that installing Python modules this way isn't ideal, but since I knew no better way than the ways I have tried I was kind of stuck.

Then, I read the Python segment of the Nixpkgs manual, https://nixos.org/nixpkgs/manual/#python, and inspired by that I created a file, build.nix, with the contents:

with import <nixpkgs> {};

python27.withPackages (ps: with ps; [ sage jupyter ])

(you'll note I omitted the matplotlib module, because at this stage I'll just be happy if I do not have a kernel error message in it) and tried to build it with nix-env -if build.nix but I just received the same error message as above, https://gist.github.com/fusion809/503c3ad194b164b552056833af4d835d.

Any ideas what I should do? Thanks in advance for using some of your precious spare time to help me. :)

👍︎ 3
💬︎
👤︎ u/fusion809
📅︎ Nov 24 2018
🚨︎ report
SageMath: Open source is now ready to compete with Mathematica for use in the classroom sagemath.blogspot.com/201…
👍︎ 156
💬︎
👤︎ u/phatsphere
📅︎ Feb 14 2016
🚨︎ report
Happy Cakeday, r/sagemath! Today you're 9
👍︎ 6
💬︎
📅︎ Dec 04 2020
🚨︎ report
Mathematical software: sagemath and mathematica

In my university we are learning to use mathematica for calculations such as flow, curvilinear integrals and limits with multiple variables. Personally I prefer to use open source software, so I was trying sagemath. Now for example, an integral of a function extended to a region of space, on mathematica I can perform it with 2 simple operations. Is this possible with sage? I'm reading the documentation, but I found only integral to one dimension. Here is an example:

https://preview.redd.it/r22epqdfq3m51.png?width=577&format=png&auto=webp&s=09030ae48d3f6cf88eafd68d19f6eb31a63d5114

👍︎ 4
💬︎
👤︎ u/TeoCol777
📅︎ Sep 09 2020
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.