{"id":25385,"date":"2021-11-10T09:38:38","date_gmt":"2021-11-10T04:08:38","guid":{"rendered":"https:\/\/python-programs.com\/?p=25385"},"modified":"2021-11-10T09:38:38","modified_gmt":"2021-11-10T04:08:38","slug":"python-math-erfc-method-with-examples","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-math-erfc-method-with-examples\/","title":{"rendered":"Python math.erfc() Method with Examples"},"content":{"rendered":"

math.erfc() Method in Python:<\/strong><\/p>\n

The math.erfc() method returns a number’s complementary error function.<\/p>\n

This method accepts values between – inf and + inf and returns between 0 and 2.<\/p>\n

Syntax:<\/strong><\/p>\n

math.erfc(x)<\/pre>\n

Parameters<\/strong><\/p>\n

x:<\/strong> This is Required. It is a number used to calculate the complementary error function of<\/p>\n

Return Value:<\/strong><\/p>\n

Returns a float value that represents a number’s complementary error function.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Number = 0.35<\/pre>\n

Output:<\/strong><\/p>\n

The given number's { 0.35 } complementary error function =  0.6206179464376897<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Number = -5.6<\/pre>\n

Output:<\/strong><\/p>\n

The given number's { -5.6 } complementary error function =  1.9999999999999976<\/pre>\n

math.erfc() Method with Examples in Python<\/h2>\n