[英]Using NSIS Math Library: How to perform 'Power to'
我试图使用NSIS数学函数库进行Power
计算。 我在计算数学库语法方面有很多困难。
如何在NSIS中执行此计算: h ^= g;
Var h # example variables
Var g
Var a
# I am attempting to perform the following calculations in NSIS.
# I'm not sure how exactly to do it using the math library syntax?
# Do I need to include the Math.nsh library to use it?
# h ^= g;
# My attempt:
Math::Script "a = $h; b = $g; c = ?? a = Power(a,b,c); R0 = a"
它非常类似于C / C ++,要定义一个计算XOR并返回结果的函数,请尝试;
Math::Script 'myxor(h,g) (h^g);'
之后,myxor(3,2)将给您3 XOR 2
= 1。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.