[問題] 請教積分問題已回收
目前需要使用MatLAB寫一個積分公式
敘述如下:
1/sqrt(2*pi)*integral from x to inf of exp(-t^2/2)dt 積分從x到無限大
我寫的程式如下:
1/sqrt(2*pi)*int(exp(-x^2/2),x,x,inf)
錯誤訊息如下:
Undefined function or method 'int' for input argument of type 'double'
有將exp(-x^2/2)定義成double 結果還是一樣
請問是哪裡出錯 謝謝!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.17.10.126
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):