I want to calculate the cohomology of the sheaf Q in the exact sequence on $\mathbb P^3$:
0\rightarrow\mathcal O(-1)\rightarrow \mathcal O^{\oplus 4}\rightarrow Q\rightarrow 0
To do it, I want to calculate the cohomology of Q, using Macaulay2.
I write the follow (using the tutorial in CoherentSheaf)
X=Proj(QQ[x,y,z,w])
A=OO_X^4
B=OO_X^1 (-1)
C=A/B
But, in the four line the output say:
C=A/B
stdio:15:3:(3): error: expected modules with the same ambient module.
I'm having trouble writing the correct code using Macaulay2. I'm following the tutorial (linked above), but I keep getting an error message. Can anyone help me troubleshoot this?