https://github.com/src-mgra/calculate-component
shows a component-example with use of angular-router
https://github.com/src-mgra/calculate-component
angular angular-router approach calculations change-detection component equation-solver equations example gauss-elimination material-design render useful
Last synced: about 2 months ago
JSON representation
shows a component-example with use of angular-router
- Host: GitHub
- URL: https://github.com/src-mgra/calculate-component
- Owner: src-mgra
- License: mit
- Created: 2018-10-23T08:02:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-05T11:21:07.000Z (over 7 years ago)
- Last Synced: 2025-09-26T15:33:25.359Z (9 months ago)
- Topics: angular, angular-router, approach, calculations, change-detection, component, equation-solver, equations, example, gauss-elimination, material-design, render, useful
- Language: TypeScript
- Size: 169 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
Demo:
https://stackblitz.com/github/src-mgra/calc-component