Kevin Ryde on Thu, 29 Jul 2021 01:53:40 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Is it possible to do interval arithmetic, simulate passing intervals as function arguments, like in Giac?
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Is it possible to do interval arithmetic, simulate passing intervals as function arguments, like in Giac?
- From: Kevin Ryde <user42_kevin@yahoo.com.au>
- Date: Thu, 29 Jul 2021 09:53:09 +1000
- Delivery-date: Thu, 29 Jul 2021 01:53:40 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1627516411; bh=zSWCpGA572ll/L6CPUmXf0Jl0q0B2zRTud+8krdgBE0=; h=From:To:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=Ul1WPMfg0RK0dVQIv4QpcBJX3j9jivsQALoZDynhN47VVKAjD7fcWMq5XND38b9mgEqfbJT2oEuNIV+2DDa7tFjGTFlTZqun4kaOn1YXG+QMWWOR2z1NEIUrAynFwdGzNUgCbnrM94I3Q37BxtlIyX6yFvpAsFMEBc4EY6gIJbe4BmVsmw2DfIW1PHUcbWrUy1BaIqPvAobJpyJ+HAs8mwEm/GUhtxXEJ5rlCciYagAOpLdgKd7OW17oXdx9vMCgzqCtXh0PAKwJ1kdK4nVrmNgW/f1o1/qDNaQWTyYvxCpX8D4ZYmJkky9OP/C0dhBS0qKTHMVAzab37fmYLRDOMg==
- In-reply-to: <CAL+bK4PvyW=cOa08hvC8xYHLPvyq6NkhZUhwQumX88-xn1xoyA@mail.gmail.com> (Neven Sajko's message of "Wed, 28 Jul 2021 16:56:16 +0000")
- Organization: Bah Humbug
- References: <CAL+bK4M4v_zssx5TMK2qOJ-3Z6f0ocDBmMs0GtM-XE4CmdHEiQ@mail.gmail.com> <20210728142450.GC12654@yellowpig> <CAL+bK4PvyW=cOa08hvC8xYHLPvyq6NkhZUhwQumX88-xn1xoyA@mail.gmail.com>
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
I started a bit of poor-man's interval arithmetic for myself
https://user42.tuxfamily.org/temporary/interval.gp
Believe it works, but the log and exp are not efficient. I only wanted
a few simple operations, and stay in gp for convenience. The kinds of
intervals I've used are a few terms of an alternating series, or a few
good decimal digits or bits so a pair of rationals bracketing an actual
value.