Stumper Question for me: simple question for this group -exponential and logs
Author Message
Stumper Question for me: simple question for this group -exponential and logs

I was wondering if you could help me w/ the syntax of a COBOL program
that would do exp. like below.  My goal would be to have it read a value

for variable x and b and give me U.  I took fortran 77 a couple years
ago and today my dad asked me if I knew cobol.  I said I would try.  I
managed to{*filter*}around on the school's Unix accont, but I can't get it
to work.  I was wondering if you could help me out.

Ryan

b^u=x

or Log termination U=log to the base b (x)

I want to know if I know x and b, how to I find U.

Sun, 11 Nov 2001 03:00:00 GMT
Stumper Question for me: simple question for this group -exponential and logs
MATHPK in ETKPAK at http://www.*-*-*.com/
give you logarithms in Cobol.

Quote:

> I was wondering if you could help me w/ the syntax of a COBOL program
> that would do exp. like below.  My goal would be to have it read a value

> for variable x and b and give me U.  I took Fortran 77 a couple years
> ago and today my dad asked me if I knew cobol.  I said I would try.  I
> managed to{*filter*}around on the school's Unix accont, but I can't get it
> to work.  I was wondering if you could help me out.

> Ryan

>   b^u=x

> or Log termination U=log to the base b (x)

> I want to know if I know x and b, how to I find U.

Sun, 11 Nov 2001 03:00:00 GMT
Stumper Question for me: simple question for this group -exponential and logs

Quote:

>  b^u=x

>or Log termination U=log to the base b (x)

>I want to know if I know x and b, how to I find U.

For Log, try "Function Log" or "Function Log10" to find the natural
log of a number.

Sun, 11 Nov 2001 03:00:00 GMT
Stumper Question for me: simple question for this group -exponential and logs

Quote:

>  b^u=x

>I want to know if I know x and b, how to I find U.

b^u = x
ln(b^u) = ln(x)
u*ln(b) = ln(x)
u = ln(b)/ln(x)

COMPUTE U = FUNCTION LOG(B) / FUNCTION LOG(X).

Make sure both B and X > 0 and X <> 1!
--

Sun Valley Systems    http://personal.bhm.bellsouth.net/~judmc
"For God so loved the world that He gave His only begotten Son, that
whoever believes in Him should not perish but have everlasting life."

Sun, 11 Nov 2001 03:00:00 GMT
Stumper Question for me: simple question for this group -exponential and logs

Quote:

>>  b^u=x

>>or Log termination U=log to the base b (x)

>>I want to know if I know x and b, how to I find U.
>For Log, try "Function Log" or "Function Log10" to find the natural
>log of a number.

And then use log (x) / log (b) to find U.  Or log10 (x) / log10 (b).
Just be consistent.

Sun, 11 Nov 2001 03:00:00 GMT
Stumper Question for me: simple question for this group -exponential and logs
Quote:

>I was wondering if you could help me w/ the syntax of a COBOL program
>that would do exp. like below.  My goal would be to have it read a value

>for variable x and b and give me U.  I took Fortran 77 a couple years
>ago and today my dad asked me if I knew cobol.  I said I would try.  I
>managed to{*filter*}around on the school's Unix accont, but I can't get it
>to work.  I was wondering if you could help me out.

>Ryan

>  b^u=x

>or Log termination U=log to the base b (x)

>I want to know if I know x and b, how to I find U.

Mon, 12 Nov 2001 03:00:00 GMT

 Page 1 of 1 [ 8 post ]

Relevant Pages