mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Examples added
This commit is contained in:
committed by
Ilya Shestakov
parent
d048e8507e
commit
e5bb66c602
Vendored
+14
-2
@@ -16,6 +16,8 @@ declare module mathjs {
|
||||
e: number;
|
||||
pi: number;
|
||||
|
||||
config(options: any): void;
|
||||
|
||||
/**
|
||||
* Solves the linear equation system by forwards substitution. Matrix must be a lower triangular matrix.
|
||||
* @param L A N x N matrix or array (L)
|
||||
@@ -484,6 +486,7 @@ declare module mathjs {
|
||||
complex(complex: Complex): Complex;
|
||||
complex(arg: string): Complex;
|
||||
complex(array: MathArray): Complex;
|
||||
complex(obj: IPolarCoordinates): Complex;
|
||||
|
||||
/**
|
||||
* Create a fraction convert a value to a fraction.
|
||||
@@ -1278,9 +1281,17 @@ declare module mathjs {
|
||||
}
|
||||
|
||||
export interface Complex {
|
||||
|
||||
re: number;
|
||||
im: number;
|
||||
toPolar(): IPolarCoordinates;
|
||||
clone(): Complex;
|
||||
}
|
||||
|
||||
export interface IPolarCoordinates {
|
||||
r: number;
|
||||
phi: number;
|
||||
}
|
||||
|
||||
export interface Unit {
|
||||
|
||||
}
|
||||
@@ -1290,11 +1301,12 @@ declare module mathjs {
|
||||
}
|
||||
|
||||
export interface EvalFunction {
|
||||
eval(): any;
|
||||
eval(scope?: any): any;
|
||||
}
|
||||
|
||||
export interface MathNode {
|
||||
compile(): EvalFunction;
|
||||
eval(): any;
|
||||
}
|
||||
|
||||
export interface Parser {
|
||||
|
||||
Reference in New Issue
Block a user