I don't!
Chat with our AI personalities
x2 + y2 = r2 Where "x" and "y" represent the co-ordinates of any point on the curve relative to it's center point, and "r" represents it's radius. If you want to specify a curve that goes around a specific point (we'll call it {a, b}), then that can be expressed as: (x - a)2 + (y - b)2 = r2
The union of A and B.
To plot y = 2x/3, mark the origin, O, on the Cartesian plane. Think of any multiple of 3. Call this value a. Calculate 2*a/3 and call this value b. Let P be the point (a, b). Join OP and extend in both directions. Incidentally, a need not be a multiple of 3, but the calculations are simpler if it is.
The standard equation of a circle, with center in (a,b) and radius r, is: (x-a)2 + (y-b)2 = r2
You cannot swap two numbers using call by value, because the called function does not have access to the original copy of the numbers.Swap with call by reference... This routine uses exclusive or swap without temporary variable.void swap (int *a, int *b) {*a ^= *b;*b ^= *a;*a ^= *b;return;}