Hi

can anyone tell me how to convert the value of an array into logarithm value base 10.

If I have an array like

double[] x={2,2,3,4}

I want it like

x={0.301,0.301,0.477,0.6}

thank you

Printable View

- 05-07-2010, 01:00 PMmonikaConverting value of array to log
Hi

can anyone tell me how to convert the value of an array into logarithm value base 10.

If I have an array like

double[] x={2,2,3,4}

I want it like

x={0.301,0.301,0.477,0.6}

thank you - 05-07-2010, 01:15 PMdswastik
Math.log10 should solve your purpose.

- 05-09-2010, 02:23 PMEranga
Something like this,

Math.log10(2), Math.log10(2), Math.log10(3), Math.log10(4) - 05-10-2010, 10:22 AMmonika
Thank you.

With your help I have solved it - 05-14-2010, 08:10 AMEranga
So can you mark the thread solved, from the tools menu?