Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

有高手會寫計算機的程式嗎??+ - * / 開根號小數點後四捨五入

0 views
Skip to first unread message

一頭好熊

unread,
Jun 2, 1999, 3:00:00 AM6/2/99
to
==> 在 teve...@cszone.cc.ntu.edu.tw (teven) 的文章中提到:
> 這是我們的作業,本來要用組語寫的可是寫不出開根號
> 只好請教c語言的高手囉....拜託幫忙post一下吧!
> 或是告訴我哪裡找的到吧..thanks~~

求root可用十分趨近法....

--
* Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>

死小孩

unread,
Jun 2, 1999, 3:00:00 AM6/2/99
to
==> 在 Justin@cis_nctu (一頭好熊) 的文章中提到:

> ==> 在 teve...@cszone.cc.ntu.edu.tw (teven) 的文章中提到:
> > 這是我們的作業,本來要用組語寫的可是寫不出開根號
> > 只好請教c語言的高手囉....拜託幫忙post一下吧!
> > 或是告訴我哪裡找的到吧..thanks~~
> 求root可用十分趨近法....

可用 binary search 法...:-)

重現江湖

unread,
Jun 2, 1999, 3:00:00 AM6/2/99
to
【 在 teve...@cszone.cc.ntu.edu.tw (teven) 的大作中提到: 】
: 這是我們的作業,本來要用組語寫的可是寫不出開根號
: 只好請教c語言的高手囉....拜託幫忙post一下吧!
: 或是告訴我哪裡找的到吧..thanks~~

你可以include math.h檔
其中有一個sqrt function就是開根號呀!

--
[m [1;31m※ 來源:‧神秘之旅 bbs.ice.cycu.edu.tw‧[FROM: mask.ice.cycu.edu.tw] [m

0 new messages