• No results found

SageManifolds. A free package for differential geometry

N/A
N/A
Protected

Academic year: 2021

Share "SageManifolds. A free package for differential geometry"

Copied!
16
0
0

Loading.... (view fulltext now)

Full text

(1)

SageManifolds

A free package for differential geometry

´

Eric Gourgoulhon1, Micha l Bejger2

1Laboratoire Univers et Th´eories (LUTH)

CNRS / Observatoire de Paris / Universit´e Paris Diderot 92190 Meudon, France

http://luth.obspm.fr/~luthier/gourgoulhon/

2Centrum Astronomiczne im. M. Kopernika (CAMK)

Warsaw, Poland

http://users.camk.edu.pl/bejger/

Asymptotic Analysis in General Relativity

Universit´e de Cergy-Pointoise, France 14 June 2013

(2)

Outline

1 An overview of Sage

2 The SageManifolds project

(3)

An overview of Sage

Outline

1 An overview of Sage

2 The SageManifolds project

(4)

An overview of Sage

Sage in a few words

Sageis a free open-sourcemathematics software it is based on thePythonprogramming language

it makes use of many pre-existing open-sources packages, among which

Maxima(symbolic calculations, since 1967 !)

GAP(group theory)

PARI/GP(number theory)

Singular(polynomial computations)

matplotlib(high quality figures)

and provides a uniform interface to them

William Stein (Univ. of Washington) created Sage in 2005; since then,∼150 developershave joined the Sage team

The mission

Create a viable free open source alternative to Magma, Maple, Mathematica and Matlab.

(5)

An overview of Sage

Advantages of Sage

Sage is free

Freedom means

1 everybody can use it, by downloading the software from http://sagemath.org

2 everybody can examine the source code and improve it

Sage is based on Python

no need to learn a specific syntax to use it easy access for students

Python is a very powerful object oriented language, with a neat syntax

Sage is developing and spreading fast

(6)

An overview of Sage

The Sage book

by Paul Zimmermann et al. Just published ! (May 2013)

Released underCreative Commonslicense: freely downloadable from

http://sagebook.gforge.inria.fr/

printed copies can be ordered at moderate price (10e)

(7)

The SageManifolds project

Outline

1 An overview of Sage

2 The SageManifolds project

(8)

The SageManifolds project

Existing softwares for differential geometry

Packages for proprietary softwares:

xActfree package for Mathematica

DifferentialGeometryincluded in Maple

Atlas 2for Maple

· · ·

Standalone softwares:

Cadabrafield theory (free)

SnapPytopology and geometry of 3-manifolds (Python) (free)

(9)

The SageManifolds project

The situation in Sage

Sage is well developed in many domains of mathematics: number theory, group theory, linear algebra, etc.

but nothing is implemented for differential geometry, except for differential forms on an open subset of Euclidean space with a specific set of coordinates.

(10)

The SageManifolds project

SageManifolds

A new set ofPython classesimplementing differential geometry in Sage:

Manifold: differentiable manifolds overR SubManifold,Curves: submanifolds

Point: points on a manifold

Chart: charts

DiffMapping,Diffeomorphism: differential mappings between manifolds

ScalarField: differential mappings to R

TensorField,VectorField,SymBilinFormField, etc.: tensor fields on a manifold

DiffForm,OneForm: p-forms

VectorFrame,CoordBasis: vector frames on a manifold, including tetrads and coordinate bases

Components,CompWithSym, etc.: components of a tensor field in a given vector frame

(11)

The SageManifolds project

Inheritance diagram of the tensor field classes

TensorField VectorField SymBilinFormField DiffForm ScalarField OneForm EndomorphismField AutomorphismField Metric IdentityMap ZeroScalarField

(12)

The SageManifolds project

Basic SageManifolds objects are coordinate-free

As a mappingM →R, an objectf in theScalarFieldclass has different coordinate representations in different charts defined on the manifoldM.

These coordinate representations are stored as aPython dictionarywhose keys are the names of the various charts:

f.express =nC:F, Cˆ : ˆF , . . .o withf(p) =F(x1, . . . , xn | {z } chartC ) = ˆF(ˆx1, . . . ,xˆn | {z } chartCˆ ) =. . .

(13)

The SageManifolds project

Basic SageManifolds objects are coordinate-free

An objectT in theTensorField class has different set of componentsTi...j... in

different vector frames, each component being itself an object of the

ScalarFieldfield class, since

Ti...j...=T(ei, . . . ,ej, . . .)

where(ej)stands for the vector frame and(ei)for the dual coframe.

The various sets of components are stored as aPython dictionarywhose keys are the names of the various vector frames:

T.components =n(e) : (Ti...j...), (eˆ) : ( ˆTi...j...), . . .

(14)

The SageManifolds project

SageManifolds at work

(15)

Perspectives

Outline

1 An overview of Sage

2 The SageManifolds project

(16)

Perspectives

Perspectives

SageManifoldsis a work in progress

(∼14,000 lines of Python code up to now)

A preliminary version should be released in the coming weeks at

http://sagemanifolds.obspm.fr/(page under construction)

Already present: standard tensor calculus (tensor product, contraction, symmetrization, etc.), exterior calculus, Lie derivative, affine connection, curvature, torsion, pseudo-Riemannian metric, Weyl tensor,...

Not implemented yet (but should be soon): pullback and pushforward operators, Hodge duality, extrinsic geometry of submanifolds

To do: convert some parts toCythonin order to compile them (Ccode) and increase the computational speed

For future releases: symplectic forms, fibre bundles, spinors, variational calculus

References

Related documents

It became evident throughout all interviews that the nurses are more focused on the moderate to severe stage of AD. It might be that their role, working with persons with moderate

Parental perceived walking and cycling facilities in the neighborhood at baseline was found to be marginally significantly associated: the higher the parental perceived walking

This proposed design and implementation touch screen controlled spy robot by using ZigBee technology will be used to control the robot using the touch screen from certain

The total departure delay and additional flying time due to longer reroutes for various weather forecast look- ahead times, E , were obtained by applying the

Hadoop : rhbase provides functions for database management for the HBase distributed database, rhdfs provides functions for Hadoop distributed file system, rmr provides func- tions

6.6 Rigidity test for ABS helmet, and oil palm-glass fiber helmets 139 6.7 Rigidity test results for natural fibres and ABS shell helmets 1 40. 6.8 Helmet crushing tests,

The volume fraction of bainite and martensite (Fig. 9) can be quantified and serve as an additional response that can be used to validate this model with experiments and to

Critics have called for stronger emphasis on nutrition within the PIF as well as a clearly defined role for agriculture in the National Nutrition Program (NNP). Yet, policy