2013-10-23 45 views
-3

在Mathematica中用一個變量定義一個函數的方法是:f [x_]。 如何爲更多變量編寫函數?如何在Mathematica 9.0中定義多個變量的函數?

+0

可能重複的功能: http://stackoverflow.com/questions/4142730/programmatically-creating-multivariate-functions-in-mathematica和http://stackoverflow.com/questions/14572075/multivariate-functions-with-conditions-in-mathematica –

回答

0

您可以使用逗號「」分離:

f[x_Integer, y_Integer] 

Here有更多的例子,以與默認選項,或者一些特殊類型等