473,324 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Inverse Functions in Math

i know that there is a function to find the logarithm of a number, sin,
cos, tan etc. but are there which can find sin^-1, cos^-1, tan^-1 and
antilog of a given number?

PS: sin^-1 means sin inverse. eg:
if sin 30 =1/2
30=sin inverse of 1/2

HELP!

Nov 15 '05 #1
7 18373
In article <11**********************@f14g2000cwb.googlegroups .com> a.*************@gmail.com writes:
i know that there is a function to find the logarithm of a number, sin,
cos, tan etc. but are there which can find sin^-1, cos^-1, tan^-1 and
antilog of a given number?

PS: sin^-1 means sin inverse. eg:
if sin 30 =1/2
30=sin inverse of 1/2


asin, acos, atan and exp.
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Nov 15 '05 #2
thanks man, i understood all functions except exp function.

can you tell me how to use this function to find the antilog of
0.something to base 10, and also how to make it work for different bases

Nov 15 '05 #3
REH

<a.*************@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
thanks man, i understood all functions except exp function.

can you tell me how to use this function to find the antilog of
0.something to base 10, and also how to make it work for different bases


The exp function is just like the pow function but with a constant base,
namely e. If you want "exp" with 10 or other bases, use pow.

REH
Nov 15 '05 #4
In article <11**********************@g14g2000cwa.googlegroups .com>,
<a.*************@gmail.com> wrote:
thanks man, i understood all functions except exp function. can you tell me how to use this function to find the antilog of
0.something to base 10, and also how to make it work for different bases


(Using non-C notation in this portion)

Log{N}[x] -> ln[x] / ln[N]

so

ln[x] -> Log{N}[x] * ln[N]

so

exp[ln[x]] -> exp[ Log{N}[x] * ln[N] ]

hence

x -> exp[ Log{N}[x] * ln[N] ]

Hence, to find the antilog of something base 10, Y, take
(using C notation)

exp(Y * log(10.))
For example, log10(1000.) = 3., ln(10.) ~= 2.3025851, and
exp( 3. * 2.3025851 ) = exp( 6.9077553 ) ~= 1000.0

--
Studies show that the average reader ignores 106% of all statistics
they see in .signatures.
Nov 15 '05 #5
In article <da**********@canopus.cc.umanitoba.ca>,
Walter Roberson <ro******@ibd.nrc-cnrc.gc.ca> wrote:

Hence, to find the antilog of something base 10, Y, take
(using C notation)

exp(Y * log(10.))


Or simply:

pow(10., Y)
--
Rouben Rostamian
Nov 15 '05 #6
a.*************@gmail.com wrote:

i know that there is a function to find the logarithm of a number, sin,
cos, tan etc. but are there which can find sin^-1, cos^-1, tan^-1 and
antilog of a given number?

PS: sin^-1 means sin inverse. eg:
if sin 30 =1/2
30=sin inverse of 1/2


Such as arcsin or asin, and exp?

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!

Nov 15 '05 #7
a.*************@gmail.com wrote:
thanks man, i understood all functions except exp function.

can you tell me how to use this function to find the antilog of
0.something to base 10, and also how to make it work for different bases

pow(base, x) == exp(x * log(base)) :
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include <time.h>
int main(void)
{
double x, y;
int i;
double M_log10 = log(10);
srand(time(0));

printf("exp(x) is the antilog(x, base=%.*g)\n\n", DBL_DIG, exp(1));

for (i = 0; i < 10; i++) {
x = rand() / (1. + RAND_MAX);
y = exp(x),
printf("exp(%g) = %g, log(%g) = %g\n", x, y, y, log(y));
y = pow(10, x);
printf("pow(10, %g) = %g, log10(%g) = %g\n", x, y, y, log10(y));
y = exp(x * M_log10);
printf("exp(%g * log(10)) = %g, log10(%g) = %g\n\n",
x, y, y, log10(y));
}
return 0;
}
This is the result of one run:

exp(x) is the antilog(x, base=2.71828182845905)

exp(0.540308) = 1.71654, log(1.71654) = 0.540308
pow(10, 0.540308) = 3.46983, log10(3.46983) = 0.540308
exp(0.540308 * log(10)) = 3.46983, log10(3.46983) = 0.540308

exp(0.655142) = 1.92542, log(1.92542) = 0.655142
pow(10, 0.655142) = 4.52004, log10(4.52004) = 0.655142
exp(0.655142 * log(10)) = 4.52004, log10(4.52004) = 0.655142

exp(0.430014) = 1.53728, log(1.53728) = 0.430014
pow(10, 0.430014) = 2.69162, log10(2.69162) = 0.430014
exp(0.430014 * log(10)) = 2.69162, log10(2.69162) = 0.430014

exp(0.656084) = 1.92723, log(1.92723) = 0.656084
pow(10, 0.656084) = 4.52985, log10(4.52985) = 0.656084
exp(0.656084 * log(10)) = 4.52985, log10(4.52985) = 0.656084

exp(0.567552) = 1.76394, log(1.76394) = 0.567552
pow(10, 0.567552) = 3.69447, log10(3.69447) = 0.567552
exp(0.567552 * log(10)) = 3.69447, log10(3.69447) = 0.567552

exp(0.346806) = 1.41454, log(1.41454) = 0.346806
pow(10, 0.346806) = 2.22232, log10(2.22232) = 0.346806
exp(0.346806 * log(10)) = 2.22232, log10(2.22232) = 0.346806

exp(0.418147) = 1.51914, log(1.51914) = 0.418147
pow(10, 0.418147) = 2.61907, log10(2.61907) = 0.418147
exp(0.418147 * log(10)) = 2.61907, log10(2.61907) = 0.418147

exp(0.859071) = 2.36097, log(2.36097) = 0.859071
pow(10, 0.859071) = 7.22888, log10(7.22888) = 0.859071
exp(0.859071 * log(10)) = 7.22888, log10(7.22888) = 0.859071

exp(0.824404) = 2.28052, log(2.28052) = 0.824404
pow(10, 0.824404) = 6.67427, log10(6.67427) = 0.824404
exp(0.824404 * log(10)) = 6.67427, log10(6.67427) = 0.824404

exp(0.225011) = 1.25234, log(1.25234) = 0.225011
pow(10, 0.225011) = 1.67885, log10(1.67885) = 0.225011
exp(0.225011 * log(10)) = 1.67885, log10(1.67885) = 0.225011
Nov 15 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert Mark Bram | last post by:
Howdy All! I am trying to write a very brief comparison of the Date and Math objects in terms of instance v static objects. What I have below is my best so far. Any criticisms or suggestions are...
7
by: John Smith | last post by:
I just broke up with my girlfriend, so, to sublimate my sexual tensions, I began reading this: http://forensics.calcinfo.com/ This guy has developed a method that he uses to determine chip...
9
by: Water Cooler v2 | last post by:
What is the inverse of the sine function? I've been pulling my hair and I have no clue nor memory of how to go about solving this little expression: sine-1 (read sine inverse) of (1-(x/y)) An...
6
by: Randy | last post by:
Hello, Can someone tell me how to derive the Inverse of Math.Log10(value)? Thanks
2
by: Dan | last post by:
* 32 * * .5 * X * *********** I have a triangle with a Hypotenuse of 32 and height of .5. I am trying to determine what angle X is. On a calculator I take .5/32 = .015625...
5
by: Milton | last post by:
I am having trouble in finding the propoer way to find the Inverse Log of a number in VB.Net Express edition. Can anyone tell me how it is done. Thanks!
2
by: zfareed | last post by:
Can anyone suggest some resources (websites/books) to learn coding discrete math problems? I have a problem involving sets,relations and functions and even though the logic is clear I dont know...
35
by: Francine.Neary | last post by:
I'm finding it really hard to keep some of these things straight... For example, fputs is to puts as fprintf is to printf, except that fputs has the file handle at the end and fprintf at the...
13
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
Hi, Why does Math.Sqrt() only accept a double as a parameter? I would think it would be just as happy with a decimal (or int, or float, or ....). I can easily convert back and forth, but I am...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.