[英]Evaluation of composition of mathematical functions
I am evaluating the following function : 我正在评估以下功能:
// evaluates exp(-z * (-log(x))^y )
// 0 < x < 1, y > 0, z > 0
public static double f(double x, double y, double z)
{
return Math.Exp(-z * Math.Pow(-Math.Log(x), y));
}
As this is something based on rather common functions, I was wondering : Are there some libraries (or better native C# ways) that could do it faster ? 因为这是基于相当通用的功能的,所以我想知道:是否有一些库(或更好的本机C#方式)可以更快地完成此工作?
Big Picture: No. 大图:不。
You might be able to find an implementation which compromises accuracy in favor of performance though (maybe using estimation and lookups). 不过,您也许可以找到一个折衷于准确性而偏向于性能的实现(也许使用估计和查找)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.