Coder Social home page Coder Social logo

src-mgra / calculate-component Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 173 KB

shows a component-example with use of angular-router

License: MIT License

JavaScript 9.22% TypeScript 76.90% HTML 12.12% CSS 1.76%
angular component angular-router example useful calculations material-design change-detection render approach equation-solver equations gauss-elimination

calculate-component's Introduction

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!

        <app-calc-component value='{"size":3,"matrix":[[1,1,1,3],[2,-3,-1,2],[4,-5,-1,1]]}' selCalc='eq-solver'></app-calc-component>


        or
        calculate circular area:

        <app-calc-component value=5 selCalc='circulararea'></app-calc-component>
        

        or
        calculate cirumference:

        <app-calc-component value=5 selCalc='circumference'></app-calc-component>

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.