Subscribe

higepon blog

2008-11-04

(exact? 1+5i)

scheme mosh

複素数の内部表現は Object real, imag 。ふと気になって Gauche の実装を見てみたら real/imag は double だった。ってことは Gauche では複素数は正確数のリテラルで書かれても、正確数じゃないのか。

gosh> (exact? 1+5i)
#f

なるほどなるほど。しかし複素数はほとんど使わないよな。(多分)

higepon 2008-11-04 15:09

Bookmark this entry on Hatena::Bookmark
Tweet
Remove all ads
  • Read more
Write a comment
« うわぁぁぁ 複素数実装中 »
Profile
id:higepon id:higepon
Subscribed unsubscribe Subscribe Subscribe
About this blog
Search
Links
  • Hatena Blog
  • ブログをはじめる
  • Weekly Hatena Blog
  • Hatena Blog Pro
Recent Entries
  • 2022年振り返り
  • How GC in unsafe loxido works
  • Finalize, Sweep and Rooting - Understanding Rust GC
  • Trace - Understanding Rust GC
  • Mosh compiler/VM のデバッグを1週間続けた話
Archive

Start using Hatena Blog!

higepon is using Hatena Blog. Would you like to try it too?

Start using Hatena Blog (Free)
What is Hatena Blog?
higepon blog higepon blog

Powered by Hatena Blog | ブログを報告する

Quote saved.

Login to quote this blog

Failed to save quote. Please try again later.

You cannot quote because this article is private.

Subscribed unsubscribe Subscribe Subscribe