Ags.MathUtil¶
Fields¶
None
Methods¶
class  | 
  | 
class  | 
|
class  | 
  | 
class  | 
|
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
Details¶
- class Ags.MathUtil¶
 - classmethod coefficient_to_complex(coefficient)¶
 - Parameters:
 coefficient (
str) – the coefficient string- Returns:
 Trueon success, otherwiseFalse- value:
 return location of value
- Return type:
 (
bool, value:Ags.Complex)
Compute value from coefficient.
New in version 3.6.0.
- classmethod find_exponent_parenthesis(str)¶
 - Parameters:
 str (
str) – the string- Returns:
 - exponent_open_position:
 exponent open position array return location
- exponent_close_position:
 exponent close position array return location
- exponent_open_position_count:
 exponent open position count return location
- exponent_close_position_count:
 exponent close position count return location
- Return type:
 (exponent_open_position:
int, exponent_close_position:int, exponent_open_position_count:int, exponent_close_position_count:int)
Find exponent parenthesis.
New in version 3.2.0.
- classmethod find_function(str)¶
 - Parameters:
 str (
str) – the string- Returns:
 the string offset matching function, otherwise
None- Return type:
 
Find next function.
New in version 3.2.0.
- classmethod find_function_parenthesis(str)¶
 - Parameters:
 str (
str) – the string- Returns:
 - function_open_position:
 function open position array return location
- function_close_position:
 function close position array return location
- function_open_position_count:
 function open position count return location
- function_close_position_count:
 function close position count return location
- Return type:
 (function_open_position:
int, function_close_position:int, function_open_position_count:int, function_close_position_count:int)
Find function parenthesis.
New in version 3.2.0.
- classmethod find_parenthesis_all(str)¶
 - Parameters:
 str (
str) – the string- Returns:
 - open_position:
 open position array return location
- close_position:
 close position array return location
- open_position_count:
 open position count return location
- close_position_count:
 close position count return location
- Return type:
 (open_position:
int, close_position:int, open_position_count:int, close_position_count:int)
Find all parenthesis.
New in version 3.2.0.
- classmethod find_symbol(str)¶
 - Parameters:
 str (
str) – the string- Returns:
 the string offset matching symbol, otherwise
None- Return type:
 
Find next symbol.
New in version 3.2.0.
- classmethod find_term_parenthesis(str)¶
 - Parameters:
 str (
str) – the string- Returns:
 - term_open_position:
 term open position array return location
- term_close_position:
 term close position array return location
- term_open_position_count:
 term open position count return location
- term_close_position_count:
 term close position count return location
- Return type:
 (term_open_position:
int, term_close_position:int, term_open_position_count:int, term_close_position_count:int)
Find term parenthesis.
New in version 3.2.0.
- classmethod is_term(term)¶
 - 
Test if term is a term.
New in version 3.2.0.
 
- classmethod match_coefficient(offset, end_ptr)¶
 - Parameters:
 - Returns:
 - Return type:
 
Match coefficient including optional sign.
New in version 3.6.0.
- classmethod match_exponent(offset, end_ptr)¶
 - Parameters:
 - Returns:
 - Return type:
 
Match exponent with or without parenthesis.
New in version 3.6.0.
- classmethod match_function(offset, end_ptr)¶
 - Parameters:
 - Returns:
 - Return type:
 
Match function.
New in version 3.6.0.
- classmethod match_operator(offset, end_ptr)¶
 - Parameters:
 - Returns:
 - Return type:
 
Match operator.
New in version 3.6.0.
- classmethod match_sign(offset, end_ptr)¶
 - Parameters:
 - Returns:
 - Return type:
 
Match sign.
New in version 3.6.0.
- classmethod match_symbol(offset, end_ptr)¶
 - Parameters:
 - Returns:
 - Return type:
 
Match symbol including optional sign.
New in version 3.6.0.
- classmethod multiply_coefficient_all(coefficient, value_count)¶
 - Parameters:
 - Return type: