PLS HELP ME TO CODE THE MAGNETIC FIELD AT A POINT FROM A CIRCULAR CURRENT LOOP BY BIOT-SAVART LAW.PLS HELP NEED TO SUBMIT COMPUTER PROJECT WILL DUE TOMMORROW PLSSSSS
HERE IS CODE BY MY OWN WAY
#include <iostream>
#include <conio.h>
#include <stdlib.h>
#define M 4*3.14*10^-7
main()
{
float B,N,I,R;
cout<<"Enter the no of the turns,N: /n";
cin>>N;
cout<<"Enter the intensity of current,I: /n";
cin>>I;
cout<<"Enter the magnitude of Resistance,R: /n";
cin>>R;
int x;
cout<<"Distance from the center of the coil to the point where field is to be calculated,x: /n";
cin>>x;
const float PI=3.14;
B=N*I*R*R/2[R*R+x+x]^3/2;
cout<<"The Magnetic field at the point is "<<B<<"T";
return0;
}