Utility Functions Library
Used as building blocks for programs.
PHP Science and Math Functions by Jay Tanner - 2025

Listings try to open in their own tabs. Simply close the tab when finished viewing the code.


  1. Accel_T_to_D()
  2. BC_Add_Frac()
  3. BC_Arith_Mean()
  4. BC_Base_10_Int_To_Base_B()
  5. BC_Big_Num_Name()
  6. BC_Comb_N_R()
  7. BC_Cos()
  8. BC_Cosh()
  9. BC_Cube_Root()
  10. BC_Dec_Frac_to_Int_Frac()
  11. BC_Div_Frac()
  12. BC_Double_Fact()
  13. BC_Ellipse_Circum()
  14. BC_Exp()
  15. BC_Fact()
  16. BC_GCD()
  17. BC_Grav_Accel()
  18. BC_Ln()
  19. BC_Mul_Frac()
  20. BC_Nth_Root()
  21. BC_Perm_N_R()
  22. BC_Reduce_Frac()
  23. BC_Sin()
  24. BC_Sinh()
  25. BC_Sub_Frac()
  26. BC_Tanh()
  27. BC_X_Base_10_To_Base_B()
  28. BC_aTanh()
  29. Brightness_Ratio_m1_m2()
  30. Compass_Symbol()
  31. DMS_to_Degrees()
  32. Define_Constants()
  33. HMS_to_Hours()
  34. Inv_JD_Num()
  35. JD_Num()
  36. RGB_to_Composite()
  37. Random_Digits()
  38. Sci_to_BC_Num()
  39. Split_Num_and_Text()
  40. Std_Dev_Stats()
  41. Strip_Whitespace()
  42. Swap()
  43. XYZ_to_Lat_Lon_R()