answersLogoWhite

0

What else can I help you with?

Related Questions

What is the pmf of trinomial distribution?

P(x=n1,y=n2) = (n!/n1!*n2!*(n-n1-n2)) * p1^n1*p2^n2*(1-p1-p2) where n1,n2=0,1,2,....n n1+n2<=n


Adding polynomials using array in C programming Language?

#include<stdio.h> #include<stdlib.h> void display(float **,int); float** add(float **,float **,int,int,int); int main() { float **p1,**p2,**p3,**p4; int i,j,n1,n2,k=0,x; printf("Enter no of terms of a pollynomial:\n"); scanf("%d",&n1); printf("Enter no of terms of another pollynomial:\n"); scanf("%d",&n2); p1=(float **) malloc(n1*sizeof(float *)); p2=(float **) malloc(n2*sizeof(float *)); for(i=0;i<n1;i++) p1[i]=(float *) malloc(2*sizeof(float)); for(i=0;i<n2;i++) p2[i]=(float *) malloc(2*sizeof(float)); printf("Enter the first pollynomial:\n"); for(i=0;i<n1;i++) { printf("\nEnter value and exponent:"); scanf("%f %f",&p1[i][0],&p1[i][1]); } printf("Enter the second pollynomial:\n"); for(i=0;i<n2;i++) { printf("\nEnter value and exponent:"); scanf("%f %f",&p2[i][0],&p2[i][1]); } printf("\nFirst pollynomial:\n"); display(p1,n1); printf("\nSecond pollynomial:\n"); display(p2,n2); for(i=0;i<n1;i++) for(j=0;j<n2;j++) if(p1[i][1]==p2[j][1]) k++; x=n1+n2-k; p3=add(p1,p2,n1,n2,x); printf("\nAdded polynomial:\n"); display(p3,x); return 0; } void display(float **p,int n) { int i; printf("%fx^%d",p[0][0],(int)p[0][1]); for(i=1;i<n;i++) printf("+%fx^%d",p[i][0],(int)p[i][1]); } float** add(float **p1,float **p2,int n1,int n2,int n) { int i,j,k; float **p3; p3=(float **)malloc(n*sizeof(float*)); for(i=0;i<n;i++) p3[i]=(float *)malloc(2*sizeof(float)); i=0; j=0; k=0; while(i<n1 && j<n2) { if(p1[i][1]==p2[j][1]) { p3[k][0]=p1[i][0]+p2[j][0]; p3[k][1]=p1[i][1]; k++; i++; j++; } else if(p1[i][1]<p2[j][1]) { p3[k][0]=p1[i][0]; p3[k][1]=p1[i][1]; k++; i++; } else { p3[k][0]=p2[j][0]; p3[k][1]=p2[j][1]; k++; j++; } } while(i<n1) { p3[k][0]=p1[i][0]; p3[k][1]=p1[i][1]; k++; i++; } while(j<n2) { p3[k][0]=p2[j][0]; p3[k][1]=p2[j][1]; k++; j++; } return p3; }


Why air contains N2 and O2 instead of NO?

Elements prefer to live in their natural forms.N2 and O2 are more stable than NO.Added:Air is a mixture of N2 and O2 molecules, where NO is a compound, chemically formed by reaction: N2 + O2 --> 2 NO. This reaction does not take place at normal conditions as in the air around us.


How many electrons N2 need to share to be stable?

Three pairs of electrons.


When bonded covalently N2 has how many unbonded electrons?

The s electrons in N2 are unbonded; there are four of them in each nitrogen atom and therefore 8 in the molecule N2.


Is N2 a ionic or covalent bonds?

Nitrogen gas (N2) consists of a covalent bond between two nitrogen atoms. This bond involves the sharing of electrons between the atoms, resulting in a stable molecule.


Which of N2 N2- N2 plus contain unpaired electrons?

N2+ and N2- I just did it on mastering chem and it worked I'm pretty sure its because when you count the valence electrons in N2+ and N2- you get 9 and 11 respectively because these are odd there has to be an unpaired electron in each


Why the formula of nitrogen gas is N2?

Nitrogen is a diatomic molecule, meaning it exists naturally as N2 because it is more stable when bonded to another nitrogen atom. Each nitrogen atom in the molecule shares three pairs of electrons with the other nitrogen atom, resulting in a stable molecular structure.


Does N2 contain covalent bonds?

Yes, An N2 molecules contains a triple covalent bond


What is a p2 diamond?

P2 is a grading indicator used by gemologists certified by other than the Gemological Institute of America (GIA). P2 corresponds to the GIA grade I2: at least two (visible) Inclusions. You can read more about diamond grading by different gemologists, below.


How do you caluculate the GCD of two prime numbers?

Let p1 and p2 be the two prime numbers. Because they are prime, their divisors are div(p1) = {1,p1} and div(p2) = {1,p2}. So GCD(p1,p2) = Greatest Common Divisor of p1 and p2 = p1 if p1 equals p2 1 if p1 is different from p2


Why is nitrogen less reactive than oxygen in terms of bonding?

Nitrogen is less reactive than oxygen because nitrogen has a full valence shell of electrons when it forms stable molecules, such as N2, due to its triple bond. Oxygen, on the other hand, typically forms less stable double bonds or single bonds with other elements, which makes it more reactive.