Giter VIP home page Giter VIP logo

muzz's Introduction

================================================================================
    muzz.c      |   version 1.01    |   zlib license        |   2017-11-23
    James Hendrie                   |   hendrie dot james at gmail dot com
================================================================================

    1.  Description
    2.  Installation / Uninstallation
    3.  Usage
    4.  Examples
    5.  Contact, etc.



----------------------------------------
    1.  Description
----------------------------------------

    muzz is a program that will calculate a projectile's energy given its
    mass and velocity (or the reverse).  It'll also do the whole 'Taylor
    Knockout Formula' thing, if you're into that for some reason.



----------------------------------------
    2.  Installation / Uninstallation
----------------------------------------

    To install, compile the program with 'make'.  It shouldn't take long, though
    obviously you'll need a C compiler.  If you're on any modern UNIX or Linux
    distro you should already have one, and if you don't, shame on you.  Go
    install GCC from your distro's package manager (or gcc.gnu.org) right away.

    It links to the std math library, which you should already have.

    After you've compiled the program, install it to your system by issuing
    'make install' with superuser privileges.

    To remove the program and all its accessories, return to the directory to
    which you originally extracted the tarball (or whichever directory has the
    Makefile for this program) and type 'make uninstall', again with superuser
    privileges.


----------------------------------------
    3.  Usage
----------------------------------------

Usage:  muzz [OPTION] MASS VELOCITY [DIAMETER]

Options
  -h		Print this help text
  -H		Print additional information on units used, etc.
  -E		Print example usage
  -V		Print version and author info
  -S or q	Silent (quiet) mode; print only the resultant number
  -s		Use Si (metric) units of measure - grams, m/s, joules
  -i		Use Imperial units - grains, ft/s, lbf (default)
  -m		Calculate for mass (num1 = velocity, num2 = energy)
  -v		Calculate for velocity (num1 = mass, num2 = energy)
  -e		Calculate for energy (num1 = mass, num2 = velocity) (default)
  -K		Use industry standard imperial constant (450,240)  (default)
  -k [num]	Custom user constant
  -c		Calculate constant using 'industry' GAC-1
  -C		Calculate constant using standard GAC-2
  -p		Be precise (do not round any numbers)
  -t		Use Taylor Knockout Formula (give mass, velocity, diameter)


----------------------------------------
    4.  Examples
----------------------------------------

muzz 230 900
  Returns muzzle energy of a 230 grain bullet @ 900 ft/s

muzz -s 15 270
  Using Si units of measure, returns joules (15grams @ 270 m/s)

muzz -qp 230 900
  Same, but only the number and with nothing rounded

muzz -mq 900 414
  Given the velocity and muzzle energy, it will return only the mass
  of the projectile.

muzz -t 230 860 .45
  Prints result using Taylor Knockout Formula, with the params being
  the mass (grains), velocity (ft/s) and diameter

muzz -ts 15 255 11.6
  Same, but using Si units (grams, meters/second, mm)



----------------------------------------
    5.  Contact, etc.
----------------------------------------

    Author:
        James Hendrie
        [email protected]
        [email protected]

    Sites:
        http://www.someplacedumb/net/content/progs
        https://github.com/jahendrie
            https://github.com/jahendrie/muzz    <-- This program!

muzz's People

Contributors

jahendrie avatar

Stargazers

 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.