Find Root using iteration Method C++

#include<iostream> #include<cmath> using namespace std; float f(float x) { return pow(x,3)-2*x-5; } float df(float x) { return 3*pow(x,2)-2; } float iter(float a) { //return a-(f(a)/df(a)); return sqrt(5/a+2); //return a-((b-a)/(f(b)-f(a)))*f(a); //return (a+b)/2; } int main() { float a,c,e=0,tlr,oldr; int itr=1,dc; cout<<"Enter First value of Interval:"; cin>>a; // cout<<"Enter second value of interval:"; // cin>>b; cout<<"Please Enter … Continue reading Find Root using iteration Method C++

Bisection Method in C++

#include<iostream> #include<cmath> using namespace std; float fun(float x) { return pow(x,3)-2*x-5; } float bisect(float a, float b) { return (a+b)/2; } int main() { float a,b,c,e=0,tlr; int itr=1,dc; cout<<"Enter First value of Interval:"; cin>>a; cout<<"Enter second value of interval:"; cin>>b; cout<<"Please Enter Desired Tolerance(eg. 0.0001):"; cin>>tlr; cout<<"Enter Number of digits for precision:"; cin>>dc; cout<<"\nEntered Interval … Continue reading Bisection Method in C++

Using sublime to Run & Compile Cpp Files

Hey guys, so how you all doing...well,i  hope good for you, now let's get back to point, so i recently installed sublime after having a thought of trying different Code Editors, usually i use visual studio,npp or atom. so i find Sublime lightweight, colorful and attractive with Dark Theme, and as easy as other mentioned … Continue reading Using sublime to Run & Compile Cpp Files

Error Calling Service ( MANTRA MFS 100 Fingerprint Scanning )

So, you were happy to use that biometric device you just brought, until this error comes up when you tried to capture the fingerprint, well you're not alone. This guide is written specifically for "MANTRA MFS 100", but maybe it can work for other devices too. So the problem may occur if you don't have … Continue reading Error Calling Service ( MANTRA MFS 100 Fingerprint Scanning )

solve Update requires a valid UpdateCommand when passed DataRow collection with modified rows

hi there, so again working on the same project that i talked yesterday in that lookUpEdit to ComboBox post , I had came across another problem, actually there had been many problems but then i was not active on this blog, so i'm only writing about recent problems, ohk so the problem i had is … Continue reading solve Update requires a valid UpdateCommand when passed DataRow collection with modified rows