AJ Design Engineering Software Home Page
  Home    Page 2    Page 3    Page 4    Page 5    Physics    Math    Fluid Mechanics    Investment Finance     Loan Calculator     Nursing Math



AJ PHP Software Source Code Math Library
Logarithm Base


float log_base ( number y, number x)

Description:

log_base returns the base(b) of the logarithm given y and x in the following equation.

log equation

Source Code:

function log_base ($x, $y)
{
  //variable and initializations
  $the_result = 0.0;
  $temp01     = 0.0;

  //take the base 10 logarithm of y and divide by x
  $temp01 = log10($y) / $x;

  //calculate the result
  $the_result = pow(10.0, $temp01);

  //return the value
  return $the_result;
}

Example:

<?
include ("ajmath.php");

$x = 2.0;
$y = 5.4;

$the_base = log_base ($x, $y);

echo "x = $x<br>";
echo "y = $y<br>";
echo "the_base = $the_base<br>";
?>


Run Example


array average solve for the average of an array
factorial integer solve for the factorial of an integer
log base solve for the base of the logarithm function

References - Books:

Max A. Sobel, Nobert Lerner. 1991. Precalculus Mathematics. Prentice Hall.

Subwoofer Box Software Downloads for Sealed, Ported and Bandpass
Salary Wage Pay Calculator - Jobs Career
Baby Infant Growth Charts - Weight Age Percentile
Engine Horsepower Calculator
Earned Value Project Management
Present Worth Economics Calculator
Constant Acceleration Motion Calculator
Statistics Equations Formula Calculator
Mortgage Payment Finance Calculator
Weight Loss Formulas Calculator
Body Mass Index BMI Calculator
RGB Color Code Conversion Tool
Dog Age Calculator - How Old is Your Pet In Human Years?
Fluorescent Light Bulb Cost Analysis Calculator
Automobile Fuel Economy Calculator
Gasoline Diesel

Car Truck Tire Size Comparison Calculator

AJ Design - Online Science Mathematics Engineering Software Programs | 2 | 3 | 4 | 5

Technical Tools, Specifications, How to Guides, Applications, Examples, Tutorials, Answers, Resources, Analysis, Homework Solutions, Help, Data and Information for Engineers, Technicians, Teachers, Researchers, K-12 Education, College and High School Students and Scientists

contact email

Privacy Policy, Disclaimer and Terms

Copyright 2002-2007