11.001001000011111101101010100010001000 Arithmazium

Paranoia: The Program

M Readers might visit the Arithmetic Study first.

Introduction

What is Paranoia?

What Paranoia isn't

Versions of Paranoia

Semiliterate programming

Pocket Guide to Python for Paranoia

Opening lines of code

Historical comment

Global variables and flags

Execution begins

Opening messages

instructions()

print_msgs()

heading()

charcteristics()

history()

Utility functions

Math functions

Pause for user input

Zero and one

test_cond()

bad_cond()

Small integers

Larger integers

Radix

find_big_2_to_nth()

find_radix_from_big_2_to_nth()

Precision

find_precision_big_B_to_nth()

Refining ulps of 1±

find_ulp_of_one_plus() – the setup

find_ulp_of_one_plus() – the iteration

find_ulp_of_one_minus() – the setup

find_ulp_of_one_minus() – the iteration

Recalculate radix

Compare ulps of 1

Useful constants

compute_A_and_inverse()

compute_C_and_inverse()

compute_H_and_inverse()

compute_safe_ulps_of_one()

frac_prec

standardize_fractional_precision()

check_prec

first_prec_tests

test_for_extra_precise_subepressions()

test_normalized_subtraction()

guard_digit

does_mult_have_guard_digit()

test_mult_low_digits()

does_div_have_guard_digit()

does_add_sub_have_guard_digit()

guard2

guard3

rounding

how_does_mult_round()

how_does_div_round()

rounding2

rounding3

rounding4

how_does_add_sub_round()

sticky

rounding_symmetry_test()

sticky2

has_sticky_bit()

round_summary

mul_cmmute

test_mult_commutivity()

rand_frac()

sqrt

sqrt_single_bound_test()

sqrt_int

test_sqrt_int()

test_sqrt_monotonicity()

update_sqrt_errors()

sqrt_num_theory

num_theory_sqrt_test()

num_theory_sqrt_value()

pow_small_int

test_power_result()

test_integer_powers()

print_if_err_cnt_positive()

pow_primes

uflow1

tiny_powers_of_B()

uflow1a

tiny_values_and_difference()

uflow2

test_for_pseudo_zero()

uflow3

uflow4

uflow5

does_tiny_value_misbehave()

uflow6

uflow7

is_gradual_underflow_IEEE()

uflow8

uflow9

test_tiny_differences()

uflow10

test_for_narrow_range()

test_extreme_underflow()

exp2

e_squared()

test_x_to_xp1_over_xm1()

z_to_q

extreme_z_to_q()

oflow1

big_powers_of_B()

oflow2

no_trap_overflow_threshold()

trap_overflow_threshold()

oflow_comparisions

tiny_sqrt_tests

test_sqrt_tiny()

test_sqrt_big()

range_unit_div_zero

check_range_balance()

test_unit_ratios()

test_div_by_zero()

final_report

© 2024 Jerome Coonen