Coder Social home page Coder Social logo

th31nitiate / redfour-elixir Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 36 KB

A test repository for RedFour: elixir course. This has been used like some type of note taking system via commits. It is mainly for my own use but thought I would make it public so peeps that are working through have something to reference when stuck. I also use this for training by performing updates/experiments on a codebase that I am familiar with.

Elixir 100.00%

redfour-elixir's Introduction

Physics

TODO: Add description

Installation

run "iex .S mix"

This will give you a shell, then you can play with the modules.

The correct escape value is alway 11.2 for the earth. You can use this to generate a a struct in to the module.

defmodule Physics.Planet do
  defstruct [
    name: "Earth",
    radius: 6.371e6,
    mass: 5.97e24
  ]
end

Physics.Rocketry.escape_velocity(Physics.Planet.struct)

We have created the Converter module, this allows us to seprate funcation logic to diffirent modules.

I have added tests for, we can use the following url to verify unknown values. mass/kg radius/meters

http://www.calctool.org/CALC/phys/astronomy/escape_velocity

https://nssdc.gsfc.nasa.gov/planetary/factsheet/

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.