# Words using double x?

Exxon.

XXX used on a bottle to indicate that the contents are poisonous.

### How do you use pow function in c?

Either you can use the pre defined function "pow" in the <math.h> header file OR you can make a user defined function to do the same operation. 1.Using the pre defined function in <math.h> : The function is a of datatype double and accepts only values in double. So, prototype declaration is: double pow(double x,double y); Pass the values to the function and it'll return the value of xy. In the calling function it can…

### How do you find the general equation of cone using C language?

If you mean the "general equation of a cone" to be the elliptical cone equation: z = √( (x/a)2 + (y/b)2 ) ... then the function in C to compute this given the proper variables is: double genEqCone(const double x, const double y, const double a, const double b) { const double X_A = (x/a); const double Y_B = (y/b); return sqrt((X_A * X_A) + (Y_B * Y_B)); }

### Write a program to enter a number and print its cube?

#include <iostream> using std::cin; using std::cout; using std::endl; double cube(double number);//prototype int main() { double number = 0.0; cout << endl << "Enter a number: "; cin >> number; cout << endl << "Cube of " << number << " is " << cube(number) << endl; system("PAUSE"); return 0; } double cube(double number) { return (number * number * number); } Also you can use the function pow(x, y) which returns x to the power…

### Find Nth harmonic number using recursion?

Type this into Dev-C++ and run it. You will be able to find whatever harmonic number you want. This may not be perfect because I wrote it in about 10 minutes, but I think it works just fine. Good luck! #include <stdio.h> double seq(double x); double seq(double x) { double temp=0; if (x==0) return 0; return 1/x + seq(x-1); } int main() { double x, y; while (x != 0) { printf("Please enter a number:\n")…

### Java program for runge kutta method?

public class RungeKutta { public static final int STEPS = 100; public static double deriv(double x, double y) { return x * Math.sqrt(1 + y*y); } public static void main(String[] args) { // `h' is the size of each step. double h = 1.0 / STEPS; double k1, k2, k3, k4; double x, y; int i; y = 0; for (i=0; i<STEPS; i++) { x = i * h; y += h * deriv(x, y)…

### How can we write program in c on secant method explain with example?

#include<iostream> #include<cmath> #include<fstream> using namespace std; double f(double x); int main() { double dX0, dX1, dX2, dInterations = 0, dTolerance; cout << "What is the first root guess? "; cin >> dX0; cout << "What is the second root guess"; cin >> dX1; do { dX2 = dX1 - ((f(dX1) * (dX1 -dX0)) / (f(dX1) - f(dX0))); dX0 = dX1; dX1 = dX2; dTolerance = fabs(dX2 - dX1); dInterations++; } while (dInterations <= 100 dTolerance…

### Program in C to find root using bisection method?

# include <stdio.h> # include <conio.h> # include<stdlib.h> # include <math.h> # define EPS .00001 double F(double x); double root(double fVal1,double fVal2); void main() { double fVal1,fVal2; clrscr(); printf("enter the values "); scanf("%f %f",&fVal1,&fVal2); printf("the roots of the euation is %1.9f\n",root(fVal1,fVal2)); getch(); } double root(double fVal1,double fVal2) { int nCtr=0; double fTest1,fTest2,fTest3,fVal,fNum; fTest1=F(fVal1); fTest2=F(fVal2); if((fTest1*fTest2)>0) { printf("both are of equal sign"); exit(0); } else { do { nCtr++; fVal1=(fVal1+fVal2)/2; fTest3=F(fVal); if(fTest1*fTest3>0) { fTest1=fTest3; fVal1=fVal; }…

### Is double 200 percent?

No, 50 is double of 25 so....if X = 50 Y = 25 X - Y = 25 25 / Y = 1 1 * 100 = 100% 100% is double. -------------------------------------------------------------------------------------------------------------------------------------------------- X = 50 Y = 25 X/Y = 2 X = 2 x Y <------- statement 1 X/Y = 2 X/Y = 2 x 100% = 200% X = 200% of Y <------ statement 2 By statement 1 & 2, 200% is equivalent…

### What is a double inequality?

A double inequality is an inequality where there are two signs, as opposed to one. Ex: an inequality could be 3x < 15 A double inequality could be 3x < 15 < x + 20 If you'd want to solve that double inequality, you split it into to expressions: 3x < 15 and x + 20 > 15 Then just solve. x < 5 and x > -5 -5 < x < 5

### Write a c program to find average of students using C programming?

You can't find the average of two totally different values, but this is as close as I got to your request. Average is the same as the mean. Add them all together and divide them by how many there are. Example: Students using c: 25 students not using c: 30 (students using c)Ã·(Students using + Students not using) = average 25Ã·55= 0.45 See how it doesn't work? *Note, the following language is in c++ because…

### How do you Program to calculate the value of pi using Monte Carlo method?

//Program to calculate the value of pi using monte carlo method: /* NADEEM AHMAD MCA 2012 NITISH HOODA M TECH 2012 SHARDA UNIVERSITY GREATER NOIDA*/ #include<stdlib.h> #include<stdio.h> #include<math.h> #include<string.h> #include<conio.h> #define SEED 35791246 void main(int argc, char* argv) { int niter=0; double x,y; int i,count=0; /* # of points in the 1st quadrant of unit circle */ double z; double pi; printf("Enter the number of iterations used to estimate pi: "); scanf("%d",&niter); /* initialize random…

### Can someone tell you what is wrong with these programs?

//Newton's Method #include<stdio.h> #include<stdlib.h> #include<math.h> double f(double x); double df(double x); int main() { double Delta = 1E-6; double Epsilon = 1E-6; double Small = 1E-6; int Max = 99; int Cond = 0; int K; double P0; double P1; double Y0; double Y1; double Df; double Dp; double RelErr; printf("Enter initial value\n"); scanf("%lf", &P0); Y0 = f(P0); for (K = 1; K <= Max ; K++) { if(Cond) break; Df = df(P0); if( Df…