SolveEquation1n


This object has been removed in release 10.0.0. Use NTL objects instead.

Find solutions for x + a = 0 or ax + b = 0 equation where a and b are constants and x is unknown variable.

This functions are available for floating point numbers only.

You can find more information in comments below.

// Find solution of x + a = 0 equation and store it in x1. Return number of found solutions(always 1) 
    template<class TYPE>
    typename std::enable_if<std::is_floating_point<TYPE>::value, int>::type
        SolveEquation1n(const TYPE a, TComplex<TYPE> &x1);
    
    // Find solution of ax + b = 0 equation and store it in x1. Return number of found solutions(either 1 or 0 if a = 0). Tolerance is used for comparison of a with zero 
    template<class TYPE>
    typename std::enable_if<std::is_floating_point<TYPE>::value, int>::type
        SolveEquation1n(const TYPE a, const TYPE b, TComplex<TYPE> &x1, const TYPE tolerance);
Namespace: nitisa::math
Include: Nitisa/Modules/Math/Equation.h