Question

In nacl molecule, the interaction potential between na ion and cl ion fits the following equation:...

In nacl molecule, the interaction potential between na ion and cl ion fits the following equation:

V(r)=-e2/r+ α.e-r/q

in this equation, the first term hammer is the coulomb potential,the second term results from the distribution of other electrons in the system.

The equilibrium position between the two ions is where the potential is minimum:

f(r)=-dV/dr=e2/r2- α/q . e-r/q  =0   the root of this equation gives the r0 bond length.experimental for NaCl  α=1.09*103 eV,q=0.33 A and e2 =14.4 A eV

Write the c ++ program that calculates the bond length in A using the constant (using NEWTON-RAPHSON-METHOD) please could you give detail about solution?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

The function is 14.4/(x*x)-1090.0*exp(-x/0.33)/0.33;

So, df/dx=14.4*(-3)/x^3+1090/0.33*exp(-x/0.33)/0.33=-43.2/x^3+10900000*exp(-x/0.33)

which can be further simplified to

(10900000.0*exp(-(100.0*x)/33.0))/1089.0 - 144.0/(5.0*x*x*x);

#include<iostream>
#include<cmath>
#define EPSILON 0.001
using namespace std;
  
// An example function whose solution is determined using
double func(double x)
{
return 14.4/(x*x)-1090.0*exp(-x/0.33)/0.33;
}
  
double derivFunc(double x)
{
return (10900000.0*exp(-(100.0*x)/33.0))/1089.0 - 144.0/(5.0*x*x*x);
}
  
// Function to find the root
void newtonRaphson(double x)
{
double h = func(x) / derivFunc(x);
while (abs(h) >= EPSILON)
{
h = func(x)/derivFunc(x);

// x(i+1) = x(i) - f(x) / f'(x)   
x = x - h;
}
  
cout << "The bond length r0 : " << x<<"A"<<endl;
}
  
// Driver program to test above
int main()
{
double x0 = 1; // Initial values assumed
newtonRaphson(x0);
return 0;
}

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
In nacl molecule, the interaction potential between na ion and cl ion fits the following equation:...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT