Coder Social home page Coder Social logo

terminal_programs's Introduction

terminal_programs

Small terminal programs in Python I made for quick temperature/distance unit conversion/calculations

Calculation programs that use Newton's method such as square_root.py and cube_root.py will also print calculation logs.

Run in terminal like you would any other program:

$ python3 <program name> [args]

For example:

$ python3 square_root.py 912.04

Output:

Square root of 912.04 = 456.52. Error = 426.32
Square root of 912.04 = 229.2589047577324. Error = 199.05890475773242
Square root of 912.04 = 116.61855723166089. Error = 86.41855723166088
Square root of 912.04 = 62.219633972861004. Error = 32.019633972861
Square root of 912.04 = 38.43901471521989. Error = 8.239014715219891
Square root of 912.04 = 31.082974810625572. Error = 0.8829748106255728
Square root of 912.04 = 30.212541343306896. Error = 0.01254134330689638
Square root of 912.04 = 30.20000260298017. Error = 2.60298017096261e-06
Square root of 912.04 = 30.20000000000011. Error = 1.1013412404281553e-13
Square root of 912.04 = 30.2. Error = 0.0
Comparison with math module:
Square root of 912.04 = 30.2. guess^2 = 912.04

terminal_programs's People

Contributors

jpaolosese avatar

Watchers

 avatar

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.