Solved

How to program ?

Posted on 2000-04-23
5
203 Views
Last Modified: 2010-04-02
Write your own function
         double MyPow(double a, double b);
To return the value of ab, calculated as
Exp(b*log(a))
Remmber to include math.h
0
Comment
Question by:pooiteng
  • 2
  • 2
5 Comments
 
LVL 1

Expert Comment

by:ntdragon
ID: 2742293
we don't do homework at EE
0
 
LVL 1

Expert Comment

by:ntdragon
ID: 2743311
send us a direct question and we will ty to help
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 2746430
>> Remmber to include math.h


Java ? or C / C++ ?
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 2746433
hehe

sorry, wrong page ... I though that I was inside the Java section :)
0
 

Accepted Solution

by:
filia earned 50 total points
ID: 2779141
double MyPow(double a, double b)
}
   return exp(b*log(a));
}
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now