One Hat Cyber Team
Your IP :
216.73.216.115
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
Macaulay2
/
Edit File:
FirstPackage.m2
-- -*- coding: utf-8 -*- newPackage( "FirstPackage", Version => "1.1", Date => "August 5, 2012", Authors => { {Name => "Jane Doe", Email => "doe@math.uiuc.edu", HomePage => "http://www.math.uiuc.edu/~doe/"}}, Headline => "an example Macaulay2 package", Keywords => {"Documentation"}, DebuggingMode => false ) export {"firstFunction"} firstFunction = method(TypicalValue => String) firstFunction ZZ := String => n -> if n == 1 then "Hello World!" else "D'oh!" beginDocumentation() doc /// Node Key FirstPackage Headline an example Macaulay2 package Description Text {\em FirstPackage} is a basic package to be used as an example. Caveat Still trying to figure this out. Subnodes firstFunction Node Key (firstFunction,ZZ) firstFunction Headline a silly first function Usage firstFunction n Inputs n: Outputs : a silly string, depending on the value of {\tt n} Description Text Here we show an example. Example firstFunction 1 firstFunction 0 /// TEST /// assert ( firstFunction 2 == "D'oh!" ) /// TEST /// assert ( firstFunction 1 == "Hello World!" ) /// end-- You can write anything you want down here. I like to keep examples as I’m developing here. Clean it up before submitting for publication. If you don't want to do that, you can omit the "end" above.
Simpan