Macaulay2 » Documentation
Packages » EllipticCurves :: EllPoint - EllPoint
next | previous | forward | backward | up | index | toc

# EllPoint - EllPoint

- Operator: -
- Usage:
    `P-Q`
- Inputs:
  - P, an instance of the type EllPoint
  - Q, an instance of the type EllPoint
- Outputs:
  - an instance of the type EllPoint

## Description

Computes the difference of two points.

    i1 : E=ellCurve(3,8,GF(13))

    o1 = Elliptic Curve defined by Y^2 = X^3 + 3 X + (-5)( over(GF 13 .))

    o1 : EllipticCurve

    i2 : P=ellPoint({1,5,1},E)

    o2 = Point ({1, 5, 1}( on the (Elliptic Curve defined by Y^2 = X^3 + 3 X + (-5)( over(GF 13 .)))))

    o2 : EllPoint

    i3 : Q=ellPoint({2,3,1},E)

    o3 = Point ({2, 3, 1}( on the (Elliptic Curve defined by Y^2 = X^3 + 3 X + (-5)( over(GF 13 .)))))

    o3 : EllPoint

    i4 : P-Q

    o4 = Point ({-4, -6, 1}( on the (Elliptic Curve defined by Y^2 = X^3 + 3 X + (-5)( over(GF 13 .)))))

    o4 : EllPoint

## Ways to use this method:

- EllPoint - EllPoint
- `EllPointW - EllPointW`

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/EllipticCurves.m2:683:0.