Post Reply 
41 Cistern Program
08-17-2016, 04:47 AM
Post: #21
RE: 41 Cistern Program
(08-16-2016 07:08 PM)Gerson W. Barbosa Wrote:  Or, regardless the angle mode, but at the cost of 2.5 bytes and a few milliseconds more:

« OVER / 1 SWAP - DUP
ACOSH IM SWAP DUP
ACOS SIN * - SWAP SQ * *
»

A faster 55-byte solution:

Code:

  « OVER / 1. SWAP - 
    DUP ACOS SIN DUP2 R→C 
    ARG UNROT * - SWAP SQ 
    * *
  »

3 2 1 → 7.37021819169 (0.0497 s, 50g)

An even faster 60-byte solution:

Code:

  « OVER / 1. SWAP - 1.
    OVER SQ - √ DUP2 R→C 
    ARG UNROT * - SWAP SQ 
    * *
  »

3 2 1 → 7.37021819169 (0.0352 s, 50g)

These require RADIANS mode, however. Also, 2.5 more bytes on the HP-48 (ROT ROT instead of UNROT).

------------------------------------------------------------------------------------

\(V=L\cdot R^{2}\cdot \left \{ Arg\left [ \left ( 1-\frac{H}{R} \right ),\sqrt{1-\left ( 1-\frac{H}{R} \right )^{2}} \right ] - \left ( 1-\frac{H}{R} \right )\cdot \sqrt{1-\left ( 1-\frac{H}{R} \right )^{2}} \right \}\)

where

\(Arg(a,b) = \tan^{-1}\left ( \frac{b}{a} \right )\)

------------------------------------------------------------------------------------
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
41 Cistern Program - SlideRule - 08-11-2016, 12:46 PM
RE: 41 Cistern Program - wojtek - 08-13-2016, 08:29 AM
RE: 41 Cistern Program - SlideRule - 08-13-2016, 12:18 PM
RE: 41 Cistern Program - wojtek - 08-13-2016, 06:29 PM
RE: 41 Cistern Program - aurelio - 08-15-2016, 05:20 PM
RE: 41 Cistern Program - wojtek - 08-15-2016, 07:06 PM
RE: 41 Cistern Program - aurelio - 08-15-2016, 08:25 PM
RE: 41 Cistern Program - wojtek - 08-15-2016, 07:28 PM
RE: 41 Cistern Program - Werner - 08-13-2016, 11:06 AM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-13-2016, 09:41 PM
RE: 41 Cistern Program - Massimo Gnerucci - 08-14-2016, 07:07 AM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-14-2016, 02:26 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-16-2016, 07:08 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-17-2016 04:47 AM
RE: 41 Cistern Program - wojtek - 08-17-2016, 06:08 AM
RE: 41 Cistern Program - Ángel Martin - 08-17-2016, 06:46 AM
RE: 41 Cistern Program - aurelio - 08-17-2016, 09:03 AM
RE: 41 Cistern Program - Dieter - 08-17-2016, 01:30 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-18-2016, 02:44 AM
RE: 41 Cistern Program - wojtek - 08-13-2016, 06:44 PM
RE: 41 Cistern Program - wojtek - 08-13-2016, 09:57 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-14-2016, 04:34 AM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-14-2016, 05:19 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-16-2016, 05:49 AM
RE: 41 Cistern Program - wojtek - 08-15-2016, 09:08 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-16-2016, 01:56 AM
RE: 41 Cistern Program - wojtek - 08-17-2016, 02:13 PM
RE: 41 Cistern Program - aurelio - 08-17-2016, 04:51 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-19-2016, 05:03 AM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-19-2016, 01:13 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-19-2016, 08:37 PM
RE: 41 Cistern Program - 4ster - 08-17-2016, 02:22 PM
RE: 41 Cistern Program - Csaba Tizedes - 08-19-2016, 08:23 AM
RE: 41 Cistern Program - aurelio - 08-19-2016, 11:54 AM
RE: 41 Cistern Program - wojtek - 08-19-2016, 12:49 PM
RE: 41 Cistern Program - Csaba Tizedes - 08-19-2016, 04:55 PM
RE: 41 Cistern Program - Csaba Tizedes - 08-19-2016, 05:07 PM
RE: 41 Cistern Program - wojtek - 08-19-2016, 07:18 PM
RE: 41 Cistern Program - aurelio - 08-19-2016, 10:05 PM
RE: 41 Cistern Program - Csaba Tizedes - 08-19-2016, 11:29 PM
RE: 41 Cistern Program - aurelio - 08-20-2016, 07:51 AM
RE: 41 Cistern Program - Csaba Tizedes - 08-20-2016, 09:16 AM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-20-2016, 05:34 AM
RE: 41 Cistern Program - aurelio - 08-20-2016, 08:02 AM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-20-2016, 03:40 PM
RE: 41 Cistern Program - Csaba Tizedes - 08-20-2016, 06:57 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-20-2016, 07:54 PM



User(s) browsing this thread: 5 Guest(s)