Yes, that was the question. Next step: if f(x)=x+x+x+x+x and x=5, do you agree or disagree that f'(x)=x?
I'll take that as a Yes, i.e. you agree so far. Two questions follow from that. (1) Do you agree that for all x, f'(x)=5? (2) Do you agree...
OK, let's take N items instead of x items. Let's set N=5 and so f(x)=x+x+x+x+x - that's 5 X's, because N=5. Let's also completely ignore the value...
Not sure if that's a question; if it is, just wrap the contents of main in a for(;;) block and add a menu option, e.g. 8 Quit, and make case 8...
It doesn't have to be. If Saswat stops being confrontational and sticks to the facts without bothering with the insults then this can be sorted...
How far have you got and where are you stuck? Have you written code to open the input file and read the lines, with minimal extra code, for...
Correction (missed the '): Let's say x=3. f(x)=x+x+x; f'(x)=1+1+1=3 so f'(x)=x. x=7: f(x)=x+x+x+x+x+x+x; f'(x)=1+1+1+1+1+1+1=7 so f'(x)=x.
Could you give me a single value for N where that doesn't hold please? (By construction this must be a positive integer, of course) As I gave two...
OK, so it looks like you've taken the code from main() and are trying to use it as a class definition. This won't work; you need to write function...
No, the idea of you being given assignments is that you learn by figuring this stuff out for yourself, using the course notes you've already been...
OK. To solve this you have to go back to first principles of differentiation. See equation 6 at http://mathworld.wolfram.com/Derivative.html...
> When you write f(x) = x+x+x .. (x times) .. +x , what do you mean by 'x times' ?? Seems a fair question. If x=3 then f(x)=x+x+x. You see...
Let me clarify that != is used in the C sense, i.e. DOES NOT EQUAL. So the puzzles is to explain why f'(x) does not equal g'(x).
OK. What does "This is not possible" mean? Do you get an error? If so, what is that error? If not, please explain why you think it is not possible.
You always have to have a main function in C++; it's the starting point for your program.
int matrix[10][10]; defines matrix[0][0] through matrix[9][9] - 100 elements in total for a 10x10 matrix.
> Note that i`m not a programmer or computer student So why have you been given this assignment?
> how to find theta..?? I already said. Look up "rectangular to polar conversion" in your favourite search engine.
Which OS?
No, I think Saswat would be the winner here as his diagram accounts for the apparent anomaly. The first reply (anju.hifi) was incorrect IMHO...
Separate names with a comma.