リファレンス · ブラックホール (位置・質量と距離(範囲つき)・見つけた方法・出典の論文つきの301個)
blackHole関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A black hole by any of its names, ignoring case, spacing, punctuation and the star after a name: Cygnus X-1, cyg x-1, HDE 226868, V404 Cyg, Sgr A*, M87, M87*, NGC 4486, or its id. A name two black
holes share finds neither.
インポート
import { blackHole } from "@johnmorrisdotca/hoshi-stars/black-holes";
定義
function blackHole(text: string): BlackHole | undefined
引数
| 名前 | 型 | 説明 |
|---|---|---|
text | string | The name. |
戻り値
BlackHole | undefined
The black hole, or undefined if the text names none.
例
import { blackHole } from "@johnmorrisdotca/hoshi-stars/black-holes";
console.log(blackHole("Sgr A*")?.massSuns?.value, blackHole("M87")?.distanceParsecs?.value, blackHole("v404 cyg")?.name);4297000 16800000 V404 Cygni出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。