gpt4 book ai didi

xslt - 在 xsl 版本 1.0 中计算余弦

转载 作者:行者123 更新时间:2023-12-01 09:27:17 26 4
gpt4 key购买 nike

我有两个带有经度和纬度值的变量。
现在我想将这些变量计算为 x 和 y 值,但我需要余弦函数。 XSL 只支持加、除等...

我如何在 XSL 1.0 中计算余弦?

<xsl:variable name="lat" select="some value"/>
<xsl:variable name="lon" select="some value"/>

<xsl:variable name="x" select="?? do some crazy calculate with cosine ??"/>
<xsl:variable name="y" select="?? do some crazy calculate with cosine ??"/>

感谢帮助!

最佳答案

我相信来自 Dimitre Novachev 的 FXSL 1.0 库包含用于计算三角函数的纯 XSLT 1.0 代码。扩展函数可能会更快,但纯 XSLT 实现更易于移植。

关于xslt - 在 xsl 版本 1.0 中计算余弦,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21099183/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com