Coder Social home page Coder Social logo

mateusfg7 / geomath Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 7.09 MB

:blue_square: :large_blue_diamond: :large_blue_circle: Geometric Math for any shapes. project made for study the Rust Lang.

Home Page: https://geomath.mateusf.com/geo_math/

License: MIT License

Rust 100.00%
geometry math rust parallelogram geomath rhombus trapezoid shapes rectangle triangle

geomath's Introduction

GeoMath

GEOMETRIC MATH

WIKIDOCSUSAGE

formulas

CodeFactor

Usage

if you type

geo-math --help

you will see the help menu, something like this

Help Code

GeoMath have support of seven shapes:

circle - parallelogram - rectangle - rhombus - square - trapezoid - triangle

you can type geo-math [shape] --help to get the help menu of each geometry

Circle

circle

FEATURES

  • get area

    usage: geo-math circle --raio=[THE RAIO OF CIRCLE] [ACTION]

    e.g:

    $ geo-math circle --raio=5 -a
    
    49.34802200544679cm

Square, Rectangle and Parallelogram

square rectangle parallelogram

all this shapes uses the same formula

FEATURES

  • get area

    usage: geo-math [command] --base=[THE BASE OF THE SHAPE] --height=[THE HEIGHT OF THE SHAPE] [ACTION]

    e.g:

    $ geo-math square --base=5 --height=5 -a
    
    25cm

Rhombus

rhombus

FEATURES

  • get area

    usage: geo-math rhombus --lDiagonal=[LARGER DIAGONAL] --sDiagonal=[SMALLER DIAGONAL] [ACTION]

    e.g:

    $ geo-math rhombus --lDiagonal=42 --sDiagonal=42 -a
    
    882cm

Trapezoid

trapezoid

FEATURES

  • get area

    usage: geo-math circle --lBase=[LARGER BASE] --sBase=[SMALLER BASE] --height=[THE HEIGHT OF SHAPE] [ACTION]

    e.g:

    $ geo-math trapezoid --lBase=42 --sBase=42 --height=42 -a
    
    1764cm 

Triangle

triangle

FEATURES

  • get area

    using base and height: geo-math triangle --base=[THE BASE OF TRIANGLE] --height=[HEIGHT OF TRIANGLE] -a

    e.g:

    $ geo-math triangle --base=42 --height=42 -a
    
    882cm 

    using sides: geo-math triangle --side-a=[SIDE A] --side-b=[SIDE B] --side-c=[SIDE C] -a

    e.g:

    $ geo-math triangle --side-a=42 --side-b=42 --side-c=42 -a
    
    763.8344cm
  • get perimeter

    usage: geo-math triangle --side-a=[SIDE A] --side-b=[SIDE B] --side-c=[SIDE C] -p

    e.g:

    $ geo-math triangle --side-a=42 --side-b=42 --side-c=42 -p
    
    63cm

geomath's People

Contributors

mateusfg7 avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

unsalbiler

geomath's Issues

name correciton

change the used name 'form' to 'shape'

"The Geometric Shape is..."

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

cargo
Cargo.toml
  • clap 4.4.14
  • colored 2.0.4
dockerfile
.github/env/.gitpod.Dockerfile
github-actions
.github/workflows/rust.yml
  • actions/checkout v4
  • actions/checkout v4
  • actions/checkout v4

  • Check this box to trigger a request for Renovate to run again on this repository

Error: sDiagonal is already in use

thread 'main' panicked at 'Non-unique argument name: sDiagonal is already in use', /home/mateusfg7/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-2.33.3/src/app/parser.rs:181:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

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.