Révision | 947ce208faeb94b92898ba49a38a7cde336293cb (tree) |
---|---|
l'heure | 2015-11-17 18:08:23 |
Auteur | MirrgieRiana |
Commiter | MirrgieRiana |
ToolsFunction: add: sqrt(real), realint, realreal
@@ -226,6 +226,8 @@ | ||
226 | 226 | Exponential.pow(dest, src1); |
227 | 227 | } , COMPLEX, "pow", COMPLEX, COMPLEX); |
228 | 228 | |
229 | + f((dest, src0) -> dest.value = FastMath.sqrt(src0.value), REAL, "sqrt", REAL); | |
230 | + | |
229 | 231 | f((dest, src0) -> dest.value = FastMath.exp(src0.value), REAL, "exp", REAL); |
230 | 232 | f((dest, src0) -> { |
231 | 233 | dest.set(src0); |
@@ -277,10 +279,13 @@ | ||
277 | 279 | f((dest, src0, src1) -> dest.value = src0.value / src1.value, INT, "/", INT, INT); |
278 | 280 | f((dest, src0, src1) -> dest.value = src0.value % src1.value, INT, "%", INT, INT); |
279 | 281 | |
282 | + f((dest, src0, src1) -> dest.value = FastMath.pow(src0.value, src1.value), REAL, "^", REAL, INT); | |
283 | + | |
280 | 284 | f((dest, src0, src1) -> dest.value = src0.value + src1.value, REAL, "+", REAL, REAL); |
281 | 285 | f((dest, src0, src1) -> dest.value = src0.value - src1.value, REAL, "-", REAL, REAL); |
282 | 286 | f((dest, src0, src1) -> dest.value = src0.value * src1.value, REAL, "*", REAL, REAL); |
283 | 287 | f((dest, src0, src1) -> dest.value = src0.value / src1.value, REAL, "/", REAL, REAL); |
288 | + f((dest, src0, src1) -> dest.value = FastMath.pow(src0.value, src1.value), REAL, "^", REAL, REAL); | |
284 | 289 | |
285 | 290 | f((dest, src0, src1) -> { |
286 | 291 | dest.set(src0); |