Macaulay2 » Documentation
Packages » SpecialFanoFourfolds :: example
next | previous | forward | backward | up | index | toc

example -- retrieve a stored fourfold example

Description

This function retrieves a fourfold previously stored with store(X,name). The local archive of stored examples may be inspected and managed through localExamplesArchive().

The optional argument n is only needed when the same name is used by stored examples of different fourfold types. Its values correspond to the following fourfold types: doubly special cubic fourfolds ($n=0$), cubic fourfolds ($n=1$), Gushel-Mukai fourfolds ($n=2$), intersections of three quadrics in $\mathbb{P}^7$ ($n=3$), and other Hodge-special fourfolds ($n=4$).

i1 : X = specialFourfold "DSCF-1";

o1 : ProjectiveVariety, cubic fourfold in C_12 ∩ C_8
i2 : name = store X
-- example "dscf_b" successfully stored

o2 = dscf_b
i3 : X' = example name;
-- loading example("dscf_b",0)...
-- evaluating example("dscf_b",0)...
-- example("dscf_b",0) ready.

o3 : ProjectiveVariety, cubic fourfold in C_12 ∩ C_8
i4 : assert(describe X == describe X')

To suppress the informative messages displayed while loading an example, use the option Verbose=>false.

See also

Ways to use example:

  • example(String)
  • example(String,ZZ)
  • example(ZZ)
  • example(ZZ,ZZ)

For the programmer

The object example is a method function with options.


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/SpecialFanoFourfolds/docs.m2:583:0.