Published February 2026 | Version v3

Supplementary code to "Algebraic surfaces as Hadamard products of curves"

  • 1. ROR icon University of Trento
  • 2. University of Genova

Description

README

How to use the code?

This repository contains Macaulay2 files and a Jupyter Notebook in Macaulay2.

  • In order to use the Jupyter Notebook: install Jupyter Notebook and add the Macaulay2 kernel, following the guide reported in the following GitHub page. Then, download the Jupyter Notebook file in the same folder used by Jupyter Notebook;
  • In order to use the Macaulay2 files: download the files in the same folder used by Macaulay2. If you want to use the functions and the results of the computation contained in the file sample.m2, you should use the command load "~/sample.m2".

What does this repository contain?

  • M2_Hadamard.ipynb: a Jupyter Notebook in Macaulay2 with all the computations related to the paper;
  • Hadamard_curves_P3.m2: a file containing a function that performs the Hadamard product of two curves L and R in 3-dimensional projective space defined by equations over the rationals. After loading this file, you can define the ideal I1 of L in the variables x0,...,x3, the ideal I2 of R in the variables y0,...,y3 and type X = preimage_Hadamard(I1+I2) to get the ideal of L \star R in the variables z0,...,z3;
  • example_3_3.m2: a file containing the computation related to Example 3.3 of the paper;
  • lemma_3_8.m2: a file containing the computation related to Lemma 3.8 of the paper;
  • example_4_6.m2: a file containing the computation related to Example 4.6 of the paper.

Files

M2_Hadamard.pdf

Files (320.9 kB)

Name Size Download all
md5:1a5ff32d999ec9b7cdd5f4949d77eaae
1.6 kB Download
md5:3e3606314b61099e238edd15030b9666
630 Bytes Download
md5:11704949050b8f9cf8c7812f23301e08
167 Bytes Download
md5:4e822fbad66013f8820f958155cc87b4
1.3 kB Download
md5:6c479d83d67a3a58ef2e678d32e8e098
36.9 kB Preview Download
md5:ae00c5769d775cb93c2c6b5e7612c689
280.2 kB Preview Download

Additional details

Related works

Is supplement to
Preprint: arXiv:2502.18813 (arXiv)
Journal article: 10.1016/j.jalgebra.2026.03.008 (DOI)

Software

Programming language
Macaulay2
Development Status
Inactive