ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Mikhail Zabaluev <mhz@alt-linux.org>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: Машинное эпсилон
Date: Thu Jan 10 02:02:00 2002
Message-ID: <20020109230133.GH2465@mhz.mikhail.zabaluev.name> (raw)
In-Reply-To: <1041365278.20020109152937@erec.ru>

Hello Sergey,

On Wed, Jan 09, 2002 at 03:29:37PM +0300, Sergey Krivulja wrote:
>
> Hello mandrake-russian,
> 
>   Кто нить может подсказать как можно поймать
>   маншинный эпсилон.

Способ 1, экспериментальный:

perl -e '$f = 1.0; do { $eps = $f; $f *= 0.5 } until (1.0 + $f ==
1.0); print "$eps\n"'
2.22044604925031e-16

Способ 2, догматический:

использовать макросы FLT_EPSILON и DBL_EPSILON из <float.h>.

Результат из способа 1 совпадает с DBL_EPSILON :)

-- 
Stay tuned,
  MhZ                                     JID: mookid@jabber.org
___________
What on earth would a man do with himself if something did not stand in his way?
		-- H.G. Wells



  reply	other threads:[~2002-01-10  2:02 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-09 15:26 [mdk-re] " Sergey Krivulja
2002-01-10  2:02 ` Mikhail Zabaluev [this message]
2002-01-10 20:29   ` [mdk-re] Проблемы с Opera 6.0 Vyacheslav Sokolov
2002-01-10 20:41     ` [mdk-re] Re[2]: " Sergey Krivulja
2002-01-10 20:44     ` AVL
2002-01-10 20:49     ` AVL
2002-01-10 21:56           ` Vyacheslav Sokolov
2002-01-11  8:54             ` [mdk-re] XFree86-4.1.0.1-alt4 и ATI Rage 128 Pro TF Alexander Nikolnikov
2002-01-11 10:09     ` [mdk-re] Проблемы с Opera 6.0 Michael Shigorin
2002-01-11 12:22       ` AVL
2002-01-11 12:43       ` Vyacheslav Sokolov
2002-01-11 15:00         ` Antonio
2002-01-11 16:01           ` Vyacheslav Sokolov
2002-01-11 18:31             ` Artem K. Jouravsky
2002-01-11 20:46             ` Michael Bykov
2002-01-11 20:54               ` Korshunov Ilya
2002-01-11 21:26                 ` [mdk-re] JT elibrary Michael Bykov
2002-01-12  1:39                   ` Sergey Degtyaryov
2002-01-12 13:24                     ` Re[2]: " Maksim Otstavnov
2002-01-12 15:25                     ` Michael Bykov
2002-01-12 15:34                       ` Aleksey Novodvorsky
2002-01-12 16:31                         ` Michael Bykov
2002-01-12 18:27                         ` Re[2]: " Maksim Otstavnov
2002-01-12 18:34                           ` Aleksey Novodvorsky
2002-01-12 23:19                             ` Re[2]: " Maksim Otstavnov
2002-01-13  2:17                               ` Re[3]: " Alexandre Prokoudine
2002-01-13 15:33                                 ` Michael Bykov
2002-01-13 16:36                                 ` Vyt
2002-01-12 18:45                           ` Sergey Degtyaryov
2002-01-12 19:17                           ` Re[3]: " Maksim Otstavnov
2002-01-12 15:36                       ` Aleksey Novodvorsky
2002-01-12 16:09                         ` Korshunov Ilya
2002-01-12 18:33                           ` [mdk-re] [JT] elibrary Michael Shigorin
2002-01-12 18:33                       ` [mdk-re] JT elibrary Michael Shigorin
2002-01-12 22:15                       ` Re[2]: " Alexandre Prokoudine
2002-01-12 14:59             ` [mdk-re] [JT] юзеры и "привычный" софт (was: Проблемы с Opera 6.0) Michael Shigorin
2002-01-12 15:06         ` [mdk-re] [JT] elibrary.ru " Michael Shigorin
2002-01-11 12:20     ` [mdk-re] Проблемы с Opera 6.0 Artem K. Jouravsky
2002-01-11 20:07     ` [mdk-re] " Konstantin Lepikhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020109230133.GH2465@mhz.mikhail.zabaluev.name \
    --to=mhz@alt-linux.org \
    --cc=mandrake-russian@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git