Point doubling in C Assignment Answers
Your question:
Can someone tell me what I am doing wrong? I have to use these variables and I should be able to get it work like this.

Assignment Help Answers with Step-by-Step Explanation:
The code does not check for any errors, such as if the m variable is zero. This could cause division by zero errors.
The code does not check if the xR and yR variables are within the field of the curve. This could cause invalid points to be returned.
}
Here is an example of how to check if the xR and yR variables are within the field of the curve:


