i wanna use C++ to determine whether a no. is prime or not...
but the thing just doesnt work at all...
would anyone kindly check this for me??
Thanks a lot!
[code=cpp]
#include "stdafx.h"
#include <iostream>
#include <cmath>
using namespace std;
//To determine whether a given number is prime or not
void main()
{
int N;int count;...
User Profile
Collapse
-
using C++ to determine if a no. is prime or not
-
solve eqtn by Newton-Raphson's method
Find a soln to the following eqtn by Newton-Raphson's method
e^(0.05x)+x^2=1 32254
Let f(x)= e^(0.05x)+x^2-132254
perform iterations until abs f(x)<10^-6
I just have no idea wt to do!!
THanks a lot!!
No activity results to display
Show More