Git Product home page Git Product logo

atms-597-sp-2020's Introduction

ATMS-597 Project 1 Group B documentation

This is the README documentation for Group B Project 1 python script.

Copyright ATMS 587 Group B: Piyush Garg, Dongwei Fu and Bowen Fang

Function: This script converts temperatures between "Celsius", "Fahrenheit" and "Kelvin".

Datatype: This script works with list, array and single value inputs.

Return: This script outputs the temperature values in the selected unit and the same datatype as the input.

Usage: example: var1 = tempconvert("K",temp1) var1 is the object that you wish to store the temperature conversion, the 1st argument on the right hand side ("K", or "C" or "F") is the scale (unit) of the input temperature values (which accepts string datatype), while the 2nd argument (temp1) is the actual input value (which accept int., float. datatype). In this case, the input temperature are in "Kelvin"(s)

to convert from Kelvin to Celsius: var1.celsius() to convert from Kelvin to Fahrenheit: var1.fahrenheit()

Example inputs and outputs: (array example) input command: con_k = tempconvert("K",np.arange(280.,320.,5.)) convert command: con_k.Fahrenheit() output: array([ 44.33, 53.33, 62.33, 71.33, 80.33, 89.33, 98.33, 107.33])

(list example) con_f = tempconvert("F",np.arange(72.,85.,1.).tolist()) convert command: con_f.Celsius() output: [22.22222222222222, 22.77777777777778, 23.333333333333336, 23.88888888888889, 24.444444444444446, 25.0, 25.555555555555557, 26.11111111111111, 26.666666666666668, 27.222222222222225, 27.77777777777778, 28.333333333333336, 28.88888888888889]

Limitation: With selected input unit, the output cannot be of the same unit.

atms-597-sp-2020's People

Contributors

dfu2020 avatar swnesbitt avatar dchug2 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.