Methods involving duality Numerical methods mathematics