/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/javascript/operator/runme.js
20 строк
436 B
Karl Wette
Allow examples and test-suite to be built out of source tree
12 май 2014, 01:21
12 май 2014, 01:21
f574a34
Код
Авторство
О чём код?
var example = require("example"); a = new example.Complex(2,3); b = new example.Complex(-5,10); console.log ("a =" + a); console.log ("b =" + b); c = a.plus(b); console.log("c =" + c); console.log("a*b =" + a.times(b)); console.log("a-c =" + a.minus(c)); e = example.Complex.copy(a.minus(c)); console.log("e =" + e); // Big expression f = a.plus(b).times(c.plus(b.times(e))).plus(a.uminus()); console.log("f =" + f);