Python math.erfc()วิธี การ
ตัวอย่าง
พิมพ์ฟังก์ชันข้อผิดพลาดเสริมสำหรับตัวเลขต่างๆ:
# Import math Library
import math
# Print complementary error function
for different numbers
print (math.erfc(0.67))
print (math.erfc(1.34))
print
(math.erfc(-6))
ความหมายและการใช้งาน
math.erfc()
เมธอดส่งคืนฟังก์ชันข้อผิดพลาดเสริมของตัวเลข
วิธีนี้ยอมรับค่าระหว่าง - inf และ + inf และส่งกลับค่าระหว่าง 0 ถึง 2
ไวยากรณ์
math.erfc(x)
ค่าพารามิเตอร์
Parameter | Description |
---|---|
x | Required. A number to find the complementary error function of |
รายละเอียดทางเทคนิค
คืนมูลค่า: | ค่า ที่float แสดงถึงฟังก์ชันข้อผิดพลาดเสริมของตัวเลข |
---|---|
เวอร์ชันหลาม: | 3.2 |