Mathematica Implementation of tessarines in Mathematica

  • Thread starter Thread starter Anixx
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
The discussion introduces a method for implementing split-complex numbers and tessarines in Mathematica using specific code snippets. The provided code modifies the behavior of Mathematica's evaluation process to allow for the use of split-complex unity J in various mathematical functions. Users are encouraged to experiment with operations involving J, such as exponentiation, logarithms, and special functions like Gamma and Zeta. Additionally, a similar approach is outlined for dual numbers using dual unity Eps, enabling users to perform calculations involving dual numbers as well. This implementation enhances Mathematica's capabilities for users interested in advanced mathematical concepts.
Anixx
Messages
88
Reaction score
11
Hello, guys!

I just wanted to share that there is a way to easily implement split-complex numbers (and tessarines) in Mathematica.

Code:
$Pre = If[FreeQ[#, J], #, Module[{tmp},
       
     tmp = Evaluate[
        MatrixFunction[Function[J, #], {{0, 1}, {1, 0}}]] //
       FullSimplify;
           tmp /. {{a_, b_}, {b_, a_}} -> a + J b]] &;

After this code you can use split-complex unity J in any functions. I recommend to try
Code:
J^I
I^J
J^J
Log[J]
Sqrt[J]
Gamma[J + 2]
Zeta[J + 1]
PolyGamma[J + 2]
Exp[J]
(-1)^J
2^J

Have fun!
 
Physics news on Phys.org
A similar code implementing dual numbers (dual unity Eps):

Code:
$Pre = If[FreeQ[#, Eps], #,
    Module[{tmp},
     tmp = Evaluate[
        MatrixFunction[Function[Eps, #], {{0, 0}, {1, 0}}]] //
       FullSimplify;
     tmp /. {{a_, b_}, {0, a_}} -> a + Eps b /. {{a_, 0}, {b_, a_}} ->
        a + Eps b]] &;
 
Back
Top