Here is the problem:-Click Here.
.I have been trying it for more time but not getting how to solve the polynomial equation after converting from base 'b' to decimal i.e. my algorithm is:-
size of array = max(A.size(),B.size(),Z.size());
store A in array as int;
add B as int element by element;
subtract Z as int element by element;
now we get cofficients of a polynomial in b i.e x1b^n + x2b^(n-1) + ...... + xn*b^0 = 0;
How to solve it or is there any other method for it??
Thanks in advance.
vikrantiitr 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
vikrantiitr 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
vikrantiitr 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
sfuo 111 Practically a Master Poster
vikrantiitr 0 Newbie Poster
sfuo 111 Practically a Master Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
vikrantiitr 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
vikrantiitr 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.