Calc-Component
use of calc-component
npm install git+https://github.com/src-mgra/calc-component --save
or
npm install calc-component --save
in project:
import { CalcComponent } from 'calc-component';
bind component
refer to component by insert:
calculate linear equation system:
1x+1y+1z=3
2x-3y-1z=2
4x-5y-1z=1
{"size":3,"matrix":[
[1,1,1,3],
[2,-3,-1,2],
[4,-5,-1,1]
]}
put the equations in json format in the parameters, the last value of each line corresponds to the constant!
or
calculate circular area:
or
calculate cirumference:
build component
in directory clac-component you can build the component with
npm run build
and publish it later as a npm-package with
npm publish --access=public
(set keys and license before)
Development server
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.