rocketSpeed関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The relativistic rocket equation: the speed, as a fraction of c, that a rocket with exhaust speed exhaustOfC reaches burning from full down to dry mass.
インポート
import { rocketSpeed } from "@johnmorrisdotca/uchusen-rockets";
定義
function rocketSpeed(exhaustOfC: number, full: number, dry: number): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
exhaustOfC | number | Exhaust speed as a fraction of the speed of light. |
full | number | The mass before the burn. |
dry | number | The mass after it. |
戻り値
number
The speed as a fraction of c.
例
import { rocketSpeed } from "@johnmorrisdotca/uchusen-rockets";
console.log(rocketSpeed(0.04, 10, 1).toFixed(3));0.092出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。