In a previous post we discuss the definition of the coordinated patch on a manifold, how to define differential forms, wedge them or calculate their exterior derivative… even simplify’em. This time a zero form will be defined and a list of forms will be created… So, let’s begin! Define a 0-form Once created the coordinated [...]
Posts Tagged ‘Tensor’
SAGE tip: GRmodule. Day 07.
Posted in Mathematics, Physics, SAGE, tagged Calculation, chrome, chromium, CLI, Command, Dictionary, Eye, Free, Functions, General, GRPy, How to, HowTo, Install, Joris, Keys, Line, Linux, Maple, Mathematica, Mathematics, Matlab, Module, Notebook, Numpy, Packages, Physics, Programming, Python, Relativity, Sage, Sage-dev, Sagemath, Science, Symbolic, Sympy, Tensor, Tensors, Terminal, Tips and Tricks, Ubuntu, Vankerschaver, Web Browser on February 26, 2011 | Leave a Comment »
This code is supposed to be (if some one does the work in the future) located in sage.tensor.differential_form_element. The code presented below is a slight modification of Joris code for differential forms manipulation on SAGE. Needed modules from sage.symbolic.ring import SymbolicRing, SR from sage.rings.ring_element import RingElement from sage.algebras.algebra_element import AlgebraElement from sage.rings.integer import Integer from [...]
SAGE tip: GRmodule. Day 06.
Posted in Science, tagged Calculation, chrome, chromium, CLI, Command, Dictionary, Eye, Free, Functions, General, How to, HowTo, Install, Keys, Line, Linux, Maple, Mathematica, Mathematics, Matlab, Module, Notebook, Numpy, Packages, Physics, Programming, Python, Relativity, Sage, Sage-dev, Sagemath, Science, Symbolic, Sympy, Tensor, Tensors, Terminal, Tips and Tricks, Ubuntu, Web Browser on February 22, 2011 | Leave a Comment »
I’ve just updated the SAGE worksheet which uses the definitions described in the previous posts. There are some explanations in text format The code has been hidden… because is long. Moreover… I’ve discover something really amazing! Joris Vankerschaver‘s code of the differential form package in SAGE. Thus, I could use some ideas from Joris’ code [...]
SAGE tip: GRmodule. Day 05
Posted in Science, tagged Calculation, chrome, chromium, CLI, Command, Dictionary, Eye, Free, Functions, General, How to, HowTo, Install, Keys, Line, Linux, Maple, Mathematica, Mathematics, Matlab, Module, Notebook, Numpy, Packages, Physics | Tagged Computers, Programming, Python, Relativity, Sage, Sage-dev, Sagemath, Science, Symbolic, Sympy, Tensor, Tensors, Terminal, Tips and Tricks, Ubuntu, Web Browser on February 19, 2011 | Leave a Comment »
Hi everyone! This time the Christoffel connection will be defined. The code As usual, here is the code: class Christoffel(Tensor): ”’The class to represent Christoffel Symbols of the second kind. Please note that while it inherits from Tensor, Christoffel symbols are NOT tensors”’ def __init__(self,metr,symbol=’C',rank=(1,2),sh=(1,-1,-1)): # The metric self.g_down = metr # Since we have [...]
SAGE tip: Working with Differential Forms.
Posted in Linux, Mathematics, Physics, Science, tagged Algebra, Calculation, Calculus, chrome, chromium, CLI, Computers, Differential, Exterior, Forms, Free, Functions, Geometry, How to, HowTo, Line, Maple, Mathematica, Mathematics, Matlab, Notebook, Packages, Programming, Python, Sage, Sage-dev, Sagemath, Symbolic, Tensor, Tensors, Terminal, Tips and Tricks, Ubuntu, Web Browser, Wedge on February 14, 2011 | 1 Comment »
A few weeks ago I realize there is a package for working with differential forms in SAGE. So, I’ve tried to take advantage of that! This is what I’ve learnt so far. Define your manifold If you work with differential forms you should know (probably better than me), that you define forms in a coordinate [...]