Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
R で両対数プロットを試行しようとしていますが、特定の値の対数を取得すると、一貫した回答が得られません。たとえば、次のようになります。
In R: > log(192.4) [1] 5.259577 On my phone: 2.28 On a web scientific calculator I get: 2.2842050677018
R と他の電卓との間の不一致の原因は何ですか? どちらを使用するのが正しいでしょうか?
私が使った関数電卓。
他の多くのプログラミング言語と同様に、R は自然対数を計算します。つまり、底eを関数で使用しますlog()。10 を底とする対数が必要な場合は、次を使用する必要がありますlog10()。
e
log()
log10()
log(192.4) [1] 5.259577 log10(192.4) [1] 2.284205
これとそれ以上のことは、のヘルプに記載されています。?log
?log