-3 variables haskell arguments function
我有
cubicQ a b c = ((3*a*c) - b**2)/(9 * (a**2))
Run Code Online (Sandbox Code Playgroud)
我需要得到的价值"一"出的是这样我就可以用它在另一个功能,而不必把它作为在其他功能的参数.我需要使用它的功能如下:
cubicRealSolution q r s t = if p < 0 then error "NaN" else (s + t) - ((b)/(3*(a)))
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
84 次 |
| 最近记录: |