Results for: Tt

What is the C programming code for newton raphson equation?

/*programm for modified newton raphson method*/#include<stdio.h>#include<math.h>#define epsilon 1e-6main(){/*This is a programm based on modifiednewton raphson method tofind out root of the equation x^3-5*x^2+7*x-3=0*/double g,g1,v,v1,v2,x,dx;int converged=0,i;printf("plz enter the guess value\n");scanf("%f",&g1);i=1;while (converged==0){printf("\n iteration no=%d\n",i);v=g1*g1*g1-5*g1*g1+7*g1-3;printf("v=%lf\n",v);v1=3*g1*g1-10*g1+7;printf("v1=%lf\n",v1);v2=6*g1-10;printf("v2=%lf\n",v2);x=(v*v1)/(v1*v1-v*v2);printf("value=%lf\n",x);g=g1-((v*v1)/(v1*v1-v*v2));printf("new guess is=%lf\n",g);dx=((g-g1)/g);printf("error=%lf\n",dx);g1=g;if (fabs(dx)'less than'epsilon){converged=1;}printf("the root of equation is=%lfi=%d\n",g,i);i=i+1;}} Full Answer

What are case label?

the case label that contains the matching value. If there is no matching value but there is a default label in the switch body, control passes to the default labelled statement. If no matching value is found, and there is… Full Answer

Abbreviation of states of the United States of America?

Alabama alalaskaakamerican samoaasarizonaazarkansasarcaliforniacacoloradococonnecticutctdelawarededistrict of columbiadcfederated states of micronesiafmfloridaflgeorgiagaguamguhawaiihiidahoidillinoisilindianainiowaiakansaskskentuckykylouisianalamainememarshall islandsmhmarylandmdmassachusettsmamichiganmiminnesotamnmississippimsmissourimomontanamtnebraskanenevadanvnew hampshirenhnew jerseynjnew mexiconmnew yorknynorth carolinancnorth dakotandnorthern mariana islandsmpohioohoklahomaokoregonorpalaupwpennsylvaniapapuerto ricoprrhode islandrisouth carolinascsouth dakotasdtennesseetntexastxutahutvermontvtvirgin islandsvivirginiavawashingtonwawest virginiawvwisconsinwiwyomingwy Full Answer

What are the abbreviations for each state?

Alabama alalaskaakamerican samoaasarizonaazarkansasarcaliforniacacoloradococonnecticutctdelawarededistrict of columbiadcfederated states of micronesiafmfloridaflgeorgiagaguamguhawaiihiidahoidillinoisilindianainiowaiakansaskskentuckykylouisianalamainememarshall islandsmhmarylandmdmassachusettsmamichiganmiminnesotamnmississippimsmissourimomontanamtnebraskanenevadanvnew hampshirenhnew jerseynjnew mexiconmnew yorknynorth carolinancnorth dakotandnorthern mariana islandsmpohioohoklahomaokoregonorpalaupwpennsylvaniapapuerto ricoprrhode islandrisouth carolinascsouth dakotasdtennesseetntexastxutahutvermontvtvirgin islandsvivirginiavawashingtonwawest virginiawvwisconsinwiwyomingwy Full Answer

What celeb is born on April 12th?

Henry Clay Politician 12-Apr-1777 29-Jun-1852 American statesman and orator F. Preston Blair Journalist 12-Apr-1791 18-Apr-1876 Blair House James Ramsay, Marquess of Dalhousie Government 12-Apr-1812 19-Dec-1860 Governor-General of India Donald Grant Mitchell Author 12-Apr-1822 15-Dec-1908 Reveries of a Bachelor John S… Full Answer

Two Binary Trees are similar if they are both empty or if they are both non-empty and left and right sub trees are similar Write an algorithm to determine if two Binary Trees are similar?

/* Given two trees, return true if they arestructurally identical.*/int sameTree(struct node* a, struct node* b) {// 1. both empty -> trueif (a==NULL && b==NULL) return(true);// 2. both non-empty -> compare themelse if (a!=NULL && b!=NULL) {return(sameTree(a->left, b->left) &&sameTree(a->right, b->right));}//… Full Answer

C plus plus program for hamiltonian cycle algo?

#include <iostream> #include <fstream> #include <string> #include <vector> using namespace std; vector<int> procedure_1(vector< vector<int> > graph, vector<int> path); vector<int> procedure_2(vector< vector<int> > graph, vector<int> path); vector<int> procedure_2b(vector< vector<int> > graph, vector<int> path); vector<int> procedure_2c(vector< vector<int> > graph, vector<int> path); vector<int>… Full Answer

What two letter symbol is for Washington?

The two letter symbol for Washington is WA also here is a list of all the others ALABAMAALALASKAAKAMERICAN SAMOAASARIZONAAZARKANSASARCALIFORNIACACOLORADOCOCONNECTICUTCTDELAWAREDEDISTRICT OF COLUMBIADCFEDERATED STATES OF MICRONESIAFMFLORIDAFLGEORGIAGAGUAMGUHAWAIIHIIDAHOIDILLINOISILINDIANAINIOWAIAKANSASKSKENTUCKYKYLOUISIANALAMAINEMEMARSHALL ISLANDSMHMARYLANDMDMASSACHUSETTSMAMICHIGANMIMINNESOTAMNMISSISSIPPIMSMISSOURIMOMONTANAMTNEBRASKANENEVADANVNEW HAMPSHIRENHNEW JERSEYNJNEW MEXICONMNEW YORKNYNORTH CAROLINANCNORTH DAKOTANDNORTHERN MARIANA ISLANDSMPOHIOOHOKLAHOMAOKOREGONORPALAUPWPENNSYLVANIAPAPUERTO RICOPRRHODE ISLANDRISOUTH CAROLINASCSOUTH DAKOTASDTENNESSEETNTEXASTXUTAHUTVERMONTVTVIRGIN ISLANDSVIVIRGINIAVAWASHINGTONWAWEST VIRGINIAWVWISCONSINWIWYOMINGWY Full Answer

How do you make a chocolate graham cracker pie shell?

* Exported from MasterCook II * Chocolate Graham Cracker Crust Recipe By : Gourmet Magazine - August 1992Serving Size : 1 Preparation Time :0:20Categories : Pastries And Pie Crusts Amount Measure Ingredient -- Preparation Method-------- ------------ -------------------------------- 1 1/4 Cups… Full Answer

Who died on April 20th?

Died on April 20th LISTS {| ! ! ! ! ! | Robert ArmstrongActor 20-Nov-1890 20-Apr-1973 King Kong Ferdinand Braun Physicist 6-Jun-1850 20-Apr-1918 Early developer of radio Cantinflas Actor 12-Aug-1911 20-Apr-1993 Around the World in Eighty Days Paul Celan Poet… Full Answer