# JSXGraph 1.11.1 Reference

## JavaScript must be enabled in order for you to use JSXGraph and JSXGraph reference. However, it seems JavaScript is either disabled or not supported by your browser.

Class Index | File Index

Elements

- Angle
- Arc
- Arrow
- Arrowparallel
- Axes3D
- Axis
- Axis3D
- Bisector
- Bisectorlines
- Boxplot
- Button
- Cardinalspline
- Chart
- Checkbox
- Circle
- Circle3D
- Circumcenter
- Circumcircle
- CircumcircleArc
- CircumcircleSector
- Comb
- Conic
- Curve
- Curve3D
- CurveDifference
- CurveIntersection
- CurveUnion
- Derivative
- Ellipse
- Face3D
- ForeignObject
- Functiongraph
- Functiongraph3D
- Glider
- Grid
- Group
- Hatch
- Hyperbola
- Image
- ImplicitCurve
- Incenter
- Incircle
- Inequality
- Input
- Integral
- Intersection
- IntersectionCircle3D
- IntersectionLine3D
- Label
- Legend
- Line
- Line3D
- MajorArc
- MajorSector
- Measurement
- Mesh3D
- Metapostspline
- Midpoint
- MinorArc
- MinorSector
- MirrorElement
- MirrorPoint
- NonReflexAngle
- Normal
- Orthogonalprojection
- OtherIntersection
- Parabola
- Parallel
- Parallelogram
- Parallelpoint
- ParametricSurface3D
- Perpendicular
- PerpendicularPoint
- PerpendicularSegment
- Plane3D
- Point
- Point3D
- PolarLine
- PolePoint
- Polygon
- Polygon3D
- PolygonalChain
- Polyhedron3D
- RadicalAxis
- Reflection
- ReflexAngle
- RegularPolygon
- Riemannsum
- Sector
- Segment
- Semicircle
- Slider
- Slopefield
- Slopetriangle
- Smartlabel
- Sphere3D
- Spline
- Stepfunction
- Tangent
- TangentTo
- Tapemeasure
- Text
- Text3D
- Ticks
- Ticks3D
- Tracecurve
- Transformation
- Transformation3D
- Turtle
- Vectorfield
- Vectorfield3D
- View3D

Classes

- _global_
- JXG
- JXG.AbstractRenderer
- JXG.Board
- JXG.Board.infobox
- JXG.C
- JXG.CA
- JXG.CanvasRenderer
- JXG.Chart
- JXG.Circle
- JXG.Circle3D
- JXG.Complex
- JXG.Composition
- JXG.Coords
- JXG.CoordsElement
- JXG.Curve
- JXG.Curve3D
- JXG.Dump
- JXG.EventEmitter
- JXG.Expect
- JXG.Face3D
- JXG.ForeignObject
- JXG.GeometryElement
- JXG.GeometryElement3D
- JXG.GeonextParser
- JXG.Group
- JXG.Image
- JXG.JessieCode
- JXG.JSXGraph
- JXG.Legend
- JXG.Line
- JXG.Line3D
- JXG.Math
- JXG.Math.BoxQuadtree
- JXG.Math.Clip
- JXG.Math.Extrapolate
- JXG.Math.Geometry
- JXG.Math.ImplicitPlot
- JXG.Math.IntervalArithmetic
- JXG.Math.Metapost
- JXG.Math.Nlp
- JXG.Math.Numerics
- JXG.Math.Plot
- JXG.Math.Poly
- JXG.Math.Poly.Monomial
- JXG.Math.Poly.Polynomial
- JXG.Math.Poly.Ring
- JXG.Math.ProbFuncs
- JXG.Math.Quadtree
- JXG.Math.Statistics
- JXG.NoRenderer
- JXG.Options
- JXG.Plane3D
- JXG.Point
- JXG.Point3D
- JXG.Polygon
- JXG.Polygon3D
- JXG.PrefixParser
- JXG.Sphere3D
- JXG.Surface3D
- JXG.SVGRenderer
- JXG.Text
- JXG.Text3D
- JXG.Ticks
- JXG.Transformation
- JXG.Turtle
- JXG.Util
- JXG.Util.Base64
- JXG.Util.Unzip
- JXG.Util.UTF8
- JXG.View3D
- JXG.VMLRenderer
- JXG.XML

# Namespace JXG.C

↳ JXG.C

Namespace for the complex number arithmetic functions, see also JXG.Complex.
Defined in: complex.js.

Namespace Summary
Constructor Attributes | Constructor Name and Description
--- | ---
| JXG.C JXG.C is the complex number (name)space.

Method Summary
Method Attributes | Method Name and Description
--- | ---
<static> | JXG.C.abs(z1) Absolute value of a complex number.
<static> | JXG.C.add(z1, z2) Add two (complex) numbers z1 and z2 and return the result as a (complex) number.
<static> | JXG.C.conj(z1) Conjugate a complex number and return the result.
<static> | JXG.C.copy(z) Create copy of complex number.
<static> | JXG.C.div(z1, z2) Divide two (complex) numbers z1 and z2 and return the result as a (complex) number.
<static> | JXG.C.mult(z1, z2) Multiply two (complex) numbers z1 and z2 and return the result as a (complex) number.
<static> | JXG.C.sub(z1, z2) Subtract two (complex) numbers z1 and z2 and return the result as a (complex) number.

Namespace Detail
JXG.C
JXG.C is the complex number (name)space. It provides functions to calculate with complex numbers (defined in JXG.Complex). With this namespace you don't have to modify your existing complex numbers, e.g. to add two complex numbers:

       var z1 = new JXG.Complex(1, 0);
       var z2 = new JXG.Complex(0, 1);
       z = JXG.C.add(z1, z1);

z1 and z2 here remain unmodified. With the object oriented approach above this section the code would look like:

       var z1 = new JXG.Complex(1, 0);
       var z2 = new JXG.Complex(0, 1);
       var z = new JXG.Complex(z1);
       z.add(z2);

See:
  JXG.Complex

Method Detail
<static> {Number} JXG.C.abs(z1)
Absolute value of a complex number.

Parameters:
{JXG.Complex|Number} z1
  Complex number

Returns:
  {Number} real number equal to the absolute value of the given parameter.

<static> {JXG.Complex} JXG.C.add(z1, z2)
Add two (complex) numbers z1 and z2 and return the result as a (complex) number.

Parameters:
{JXG.Complex|Number} z1
  Summand
{JXG.Complex|Number} z2
  Summand

Returns:
  {JXG.Complex} A complex number equal to the sum of the given parameters.

<static> {JXG.Complex} JXG.C.conj(z1)
Conjugate a complex number and return the result.

Parameters:
{JXG.Complex|Number} z1
  Complex number

Returns:
  {JXG.Complex} A complex number equal to the conjugate of the given parameter.

<static> {JXG.Complex} JXG.C.copy(z)
Create copy of complex number.

Parameters:
{JXG.Complex|Number} z

Returns:
  {JXG.Complex}

<static> {JXG.Complex} JXG.C.div(z1, z2)
Divide two (complex) numbers z1 and z2 and return the result as a (complex) number.

Parameters:
{JXG.Complex|Number} z1
  Dividend
{JXG.Complex|Number} z2
  Divisor

Returns:
  {JXG.Complex} A complex number equal to the quotient of the given parameters.

<static> {JXG.Complex} JXG.C.mult(z1, z2)
Multiply two (complex) numbers z1 and z2 and return the result as a (complex) number.

Parameters:
{JXG.Complex|Number} z1
  Factor
{JXG.Complex|Number} z2
  Factor

Returns:
  {JXG.Complex} A complex number equal to the product of the given parameters.

<static> {JXG.Complex} JXG.C.sub(z1, z2)
Subtract two (complex) numbers z1 and z2 and return the result as a (complex) number.

Parameters:
{JXG.Complex|Number} z1
  Minuend
{JXG.Complex|Number} z2
  Subtrahend

Returns:
  {JXG.Complex} A complex number equal to the difference of the given parameters.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Apr 04 2025 09:22:40 GMT+0200 (Mitteleuropäische Sommerzeit)