小编The*_*der的帖子

函数未被识别 f#

我是 f# 新手,正在编写一个程序来求解 xuvat 方程,但是编译器无法识别我的函数,并且出现错误The value or constructor 'xuvat' is not defined.

这是我的功能:

let xuvat xuvatTuple =
    match xuvatTuple with
    | (x, u, v, a, t) -> 
        match ((x<>null), (u<>null), (v<>null), (a<>null), (t<>null)) with
        | (true, true, true, _, _) -> (x, u, v, ((v**2 - u**2)/(2*x)), ((2*x)/(u + v)))
        | (true, true, _, true, _) -> (x, u, (u + a*t), a, ((sqrt (u**2 + (2 * a * x)) - u) / a))
        | (true, _, true, …
Run Code Online (Sandbox Code Playgroud)

f# function

0
推荐指数
1
解决办法
89
查看次数

标签 统计

f# ×1

function ×1