https://github.com/senorprogrammer/machspeedconverter
Mach speed conversion libraries in many different languages.
https://github.com/senorprogrammer/machspeedconverter
Last synced: about 1 year ago
JSON representation
Mach speed conversion libraries in many different languages.
- Host: GitHub
- URL: https://github.com/senorprogrammer/machspeedconverter
- Owner: senorprogrammer
- Created: 2008-12-30T22:41:42.000Z (about 17 years ago)
- Default Branch: master
- Last Pushed: 2017-03-10T23:00:13.000Z (about 9 years ago)
- Last Synced: 2025-01-24T11:27:29.410Z (about 1 year ago)
- Language: Crystal
- Homepage:
- Size: 2.06 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MachSpeedCalc
Convert between Km/h or Miles/h and Mach speeds in different programming languages.
## Mach Number
Ratio of true airspeed to speed of sound in surrounding fluid (which varies as square
root of absolute temperature). Mach 1 equals the speed of sound, which is 340.294 meters
per second or 761.59 mph at sea level.
The Mach number depends on the speed of sound in the gas and the speed of sound depends
on the type of gas and the temperature of the gas.
For the purposes of this software the gas is assumed to be common air.
Default air temperature is the global average temperature at ground level.
## Crystal
`crystal ./test.cr`
## Go
```
go run main.go
```
## Haskell
```
ghc ./mach_speed.hs
./mach_speed
```
## Ruby
`ruby ./test.rb`
## Rust
```
rustc ./main.rs -o mach_speed
./mach_speed
```
## Swift
`swift ./mach_speed.swift`