M2
M2 copied to clipboard
The primary source code repository for Macaulay2, a system for computing in commutative algebra, algebraic geometry and related fields.
Currently if `f = (x,y) -> x+y` then `f_i` is essentially `y -> i+y`: ```m2 Function _ Thing := Function => (f,x) -> y -> f splice (x,y) ``` I...
readme
`~/src/M2/M2.git/M2/distributions/dmg/ReadMe-MacOSX.rtf` recommends aquamacs, but "emacs for mac os x" from https://emacsformacosx.com/ is just as good, if not better, and should be mentioned on an equal footing.
I keep finding new issues with doing linear algebra in M2 (I know this isn't M2's specialty but still...), see e.g. #2718. I have this sample 461x149 QQ-valued matrix `m`...
Promote
This PR addresses some of the issues raised in #3184. before: ``` i1 : R=QQ[x] o1 = R o1 : PolynomialRing i2 : S=R[y] o2 = S o2 : PolynomialRing...
Here are the problems I ran into: 0. First, you need to set the compiler variables, e.g for MKL 2024.1: ``` . /opt/local/oneapi/2024.1/setvars.sh --force :: initializing oneAPI environment ... -bash:...
I am running the code below in Macaulay2. ``` load "Dmodules.m2" R = QQ[x_11,x_12,x_21,x_22] D = makeWeylAlgebra R a = x_11*dx_21 + x_12*dx_22 b = x_22*dx_22 + 2 a*b matrix{{a}}...
Inside the `else` clause of `try` statements we should have a way to access the error message (or error object?) and decide what to do based on that. Perhaps a...
I was using M2 to double-check some computations while grading calculus homework and was surprised to get the following error: ```m2 i1 : vector {1, 2, 3} / 4 stdio:1:17:(3):...
A Macaulay2 package for computing the homological shift ideals of a monomial ideal of a polynomial ring
This is a quick followup to #3419, which changed `TEST` from a method to a keyword so that we could do a better job of keeping track of the location...