Method: MathGL::MglData#roots

Defined in:
lib/mathgl/doc/libdoc_data_en.rb

#roots(func, var) ⇒ MglData

Make another data. Find roots of equation ‘func’=0 for variable var with initial guess ini. Secant method is used for root finding. Function return NULL or create empty data if data cannot be created for given arguments.

Parameters:

  • func (String)
  • var (String)

Returns:



700
701
# File 'lib/mathgl/doc/libdoc_data_en.rb', line 700

def roots
end