This site is supported by donations to The OEIS Foundation.

Mathematica code

From OeisWiki
Jump to: navigation, search


This article page is a stub, please help by expanding it.


Sequence entries in the OEIS have a field specifically for Mathematica code that can be used in the Wolfram Mathematica computer algebra system:

OEIS sequence entry fields
Name · Data · Offset · Comments · References · Links · Formula · Example · Maple · Mathematica · Prog · Crossrefs · Keyword · Author · Extensions

(* ~~~~ *) for automatic signing with timestamp

You can write (* ~~~~ *) at the end of a line and it will be rewritten appropriately.

-----Original Message-----
From: seqfan-bounces@list.seqfan.eu
[mailto:seqfan-bounces@list.seqfan.eu] On Behalf Of Russ Cox
Sent: Monday, May 21, 2012 3:27 PM
To: Sequence Fanatics Discussion list
Subject: [seqfan] Re: 4 tildes?

(...)

The ~~~~ is only recognized at the end of a line, to avoid potential
surprises if used to mean, well, four tildes.  For the most part I think
that heuristic works well.  However, I see Mathematica does have the
problem that it has no end-of-line comment to use (in, say, C, you could
say // ~~~~).  So I added (* ~~~~ *) as a special case.  You can write
(* ~~~~ *) at the end of a line and it will be rewritten appropriately.

Enjoy.
Russ
_______________________________________________

Seqfan Mailing list - http://list.seqfan.eu/

EISFormat.m

EISFormat.m formats integer sequences in the native format expected by Neil Sloane's online encyclopedia of integer sequences. Written by Olivier Gerard and Eric W. Weisstein.

Mathematica OEIS Package

https://github.com/Psychedelic-Geometry/OEIS-Mathematica/wiki
User:Enrique Pérez Herrero/OEIS Package#Mathematica OEIS Package.