홈>
# From jupyter notebook
import sympy
sympy.init_printing()
x1 = sympy.Rational(1, 2)
x2 = sympy.sqrt(2)
# ERROR: can't do this..
x3 = sympy.Rational(1, sympy.sqrt(2))
# ERROR: can't do this either
x4 = sympy.Rational(1, x2)
부동 소수점 숫자를 사용하지 않고 sqrt를 방정식의 분모에 어떻게 상징적으로 넣는가?- 답변 # 1
1/sqrt (2)가 필요할 때 다음과 같이하십시오 :
1/2가 필요할 때 이렇게하십시오 :
하지 마십시오 :
오류.