two_prod Subroutine

private pure subroutine two_prod(a, b, p, e)

Dekker's exact product: exactly (barring overflow), without FMA.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: a
real(kind=dp), intent(in) :: b
real(kind=dp), intent(out) :: p
real(kind=dp), intent(out) :: e

Calls

proc~~two_prod~~CallsGraph proc~two_prod two_prod proc~split split proc~two_prod->proc~split

Called by

proc~~two_prod~~CalledByGraph proc~two_prod two_prod proc~scaled scaled proc~scaled->proc~two_prod proc~add_real text_buffer%add_real proc~add_real->proc~scaled proc~add_real_list text_buffer%add_real_list proc~add_real_list->proc~add_real proc~add_real_array text_buffer%add_real_array proc~add_real_array->proc~add_real_list proc~write_json_real_array write_json_real_array proc~write_json_real_array->proc~add_real_list proc~generate_eclipse_data mission_type%generate_eclipse_data proc~generate_eclipse_data->proc~write_json_real_array proc~segment_trajectory_json segment_trajectory_json proc~segment_trajectory_json->proc~add_real_array proc~export_trajectory_json_file mission_type%export_trajectory_json_file proc~export_trajectory_json_file->proc~segment_trajectory_json proc~halo_solver_main halo_solver_main proc~halo_solver_main->proc~generate_eclipse_data proc~halo_solver_main->proc~export_trajectory_json_file

Source Code

    pure subroutine two_prod(a, b, p, e)

    real(dp),intent(in) :: a, b
    real(dp),intent(out) :: p, e

    real(dp) :: ah, al, bh, bl

    p = a * b
    call split(a, ah, al)
    call split(b, bh, bl)
    e = ((ah*bh - p) + ah*bl + al*bh) + al*bl

    end subroutine two_prod