com.andreimikhailov.minitheta.examples

Examples

object Examples extends App

Linear Supertypes
App, DelayedInit, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Examples
  2. App
  3. DelayedInit
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract class Bosons extends AnyRef

    Now introduce some bosonic (i.e. usual, commutative) variables

  2. type BosonsFermions = (Set[Thetas], Map[Bosons, Int])

    Super-monomial.

    Super-monomial. As we already explained, a monomial of fermionic variables is just a set of Thetas And what is a monomial of bosonic variables? It is a Map, more precisely scala.collection.mutable.Map; Every bosonic variable is mapped to its power. For example

    $X_1^5 X_2^8 X_5$

    corresponds to Map(X(1) -> 5, X(2) -> 8, X(5) -> 1) (If the power is zero, i.e. the monomial does not contain a particular variable, then we simply drop this key.)

  3. type SUSY = ESCA[BigInt, Thetas, Bosons]

    Linear combination of super-monomials

  4. case class Th(m: Int) extends Thetas with Product with Serializable

  5. case class ThOrd(m: Int) extends Ordered[Thetas] with Product with Serializable

  6. abstract class Thetas extends AnyRef

    Fermionic variables.

  7. case class X(m: Int) extends Bosons with Product with Serializable

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val DM12: ESCA[BigInt, Thetas, Bosons]

    This is the left derivative of the product M1 M2 with respect to Th(5).

    This is the left derivative of the product M1 M2 with respect to Th(5). Notice that the sign is now plus, because we got another minus when carrying the derivative across Th(1)

  7. implicit def ERESCAtoESCA(x: ER[SUSY]): SUSY

  8. implicit def ESCAtoELS(x: SUSY): ELS[BigInt, (Set[Thetas], Map[Bosons, Int])]

  9. val M1: ESCA[BigInt, Thetas, Bosons]

    This is a sample super-monomial

  10. val M12: ESCA[BigInt, Thetas, Bosons]

    And their product.

    And their product. Notice that there is a minus sign, because we had to exchange Th(2) and Th(5) to bring this to our defined ordering

  11. val M2: ESCA[BigInt, Thetas, Bosons]

    And another one

  12. def N(m: BigInt): UnitOfRing[BigInt]

    Integer coefficients:

    Integer coefficients:

    m

    integer

    returns

    m times the unit of the ring

  13. def R(m: BigInt, n: BigInt): EmbedQ[BigInt]

    Rational coefficients:

    Rational coefficients:

    m

    numerator

    n

    denominator

    returns

    $m\over n$ times unit of the ring
  14. def V(s: String): ELS[BigInt, String]

    Element of basis of the linear space:

    Element of basis of the linear space:

    s

    is the name of the variable e.g. "x" or "y"

    returns

    element of the basis

  15. def args: Array[String]

    Attributes
    protected
    Definition Classes
    App
  16. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def delayedInit(body: ⇒ Unit): Unit

    Definition Classes
    App → DelayedInit
  19. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. val eqs: Equations[BigInt, String]

    Sample system of linear equation Here x and y are variables, while a and b are constants.

    Sample system of linear equation Here x and y are variables, while a and b are constants. The equations are:

    x + 7y + a = 0
    y + {1\over 13}b = 0
  21. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  22. def esca(x: ELS[BigInt, (Set[Thetas], Map[Bosons, Int])]): ESCA[BigInt, Thetas, Bosons]

    This is just a shortcut to treat an element of linear space as an element of free supercommutative algebra.

    This is just a shortcut to treat an element of linear space as an element of free supercommutative algebra.

    x

    element of the linear space of super-polynomials

    returns

    the same x, but as an element of free supercommutative algebra (a tautology)

  23. val executionStart: Long

    Definition Classes
    App
  24. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def main(args: Array[String]): Unit

    Definition Classes
    App
  29. def mono(t: Set[Thetas], m: Map[Bosons, Int]): ESCA[BigInt, Thetas, Bosons]

  30. def monoBase(t: Set[Thetas], m: Map[Bosons, Int]): EBLS[BigInt, (Set[Thetas], Map[Bosons, Int])]

    This is a shortcut to contruct a base monomial

    This is a shortcut to contruct a base monomial

    t

    set of fermions

    m

    map of bosons

    returns

    corresponding element of the basis of the linear space of super-polynomials

  31. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  34. implicit def ordTheta(x: Thetas): Ordered[Thetas]

  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toString(): String

    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from App

Inherited from DelayedInit

Inherited from AnyRef

Inherited from Any

Ungrouped