• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision947ce208faeb94b92898ba49a38a7cde336293cb (tree)
Time2015-11-17 18:08:23
AuthorMirrgieRiana
CommiterMirrgieRiana

Log Message

ToolsFunction: add: sqrt(real), realint, realreal

Change Summary

Incremental Difference

diff -r f4abb40c041c -r 947ce208faeb projects/mirrg.game.math.wulfenite/src/main/java/mirrg/game/math/wulfenite/v0_1/script2/tnode/ToolsFunction.java
--- a/projects/mirrg.game.math.wulfenite/src/main/java/mirrg/game/math/wulfenite/v0_1/script2/tnode/ToolsFunction.java Tue Nov 17 17:27:44 2015 +0900
+++ b/projects/mirrg.game.math.wulfenite/src/main/java/mirrg/game/math/wulfenite/v0_1/script2/tnode/ToolsFunction.java Tue Nov 17 18:08:23 2015 +0900
@@ -226,6 +226,8 @@
226226 Exponential.pow(dest, src1);
227227 } , COMPLEX, "pow", COMPLEX, COMPLEX);
228228
229+ f((dest, src0) -> dest.value = FastMath.sqrt(src0.value), REAL, "sqrt", REAL);
230+
229231 f((dest, src0) -> dest.value = FastMath.exp(src0.value), REAL, "exp", REAL);
230232 f((dest, src0) -> {
231233 dest.set(src0);
@@ -277,10 +279,13 @@
277279 f((dest, src0, src1) -> dest.value = src0.value / src1.value, INT, "/", INT, INT);
278280 f((dest, src0, src1) -> dest.value = src0.value % src1.value, INT, "%", INT, INT);
279281
282+ f((dest, src0, src1) -> dest.value = FastMath.pow(src0.value, src1.value), REAL, "^", REAL, INT);
283+
280284 f((dest, src0, src1) -> dest.value = src0.value + src1.value, REAL, "+", REAL, REAL);
281285 f((dest, src0, src1) -> dest.value = src0.value - src1.value, REAL, "-", REAL, REAL);
282286 f((dest, src0, src1) -> dest.value = src0.value * src1.value, REAL, "*", REAL, REAL);
283287 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);
284289
285290 f((dest, src0, src1) -> {
286291 dest.set(src0);