Here is my code.
#include <iostream>
#include<stdlib.h>
#include<stdio.h>
#include<conio.h>
#include<math.h>
#include <cmath>
#include <functional>
using namespace std;
void main()
{
cout<<log2(3.0)<<endl;
}
But above code gives error. Error code is : error C3861: 'log2': identifier not found. How can i calculate log2 using c++?