Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/307.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用python编写一个特定的公式_Python_Math - Fatal编程技术网

用python编写一个特定的公式

用python编写一个特定的公式,python,math,Python,Math,我有一个问题,大家都知道如何用python编写这个公式 假设这些方括号只是嵌套的圆括号 defr(x): # ??? def c(x): # ??? def w(x): # ??? def f(x): 返回r(x)*最小值(c_ub/c(x)、(w_ub/w(x))**3) @Ch3steR然后呢? def formula(rx, cx, wx, cub, wub): return rx * min(cub/cx, (wub/wx) ** 3)

我有一个问题,大家都知道如何用python编写这个公式


假设这些方括号只是嵌套的圆括号

defr(x):
# ???
def c(x):
# ???
def w(x):
# ???
def f(x):
返回r(x)*最小值(c_ub/c(x)、(w_ub/w(x))**3)

@Ch3steR然后呢?
def formula(rx, cx, wx, cub, wub):
    return rx * min(cub/cx, (wub/wx) ** 3)