ubsuny / 23-Homework6G2

Apache License 2.0
0 stars 9 forks source link

Task 3 #11

Closed reshnashrestha closed 9 months ago

reshnashrestha commented 9 months ago

Who is going to do task 3? We can discuss on how to proceed.

AhmedCode99 commented 9 months ago

@tirthbha is doing it

reshnashrestha commented 9 months ago

@tirthbha have you started doing it ? How are you planning to do the comparison? In task 3, there is a task:

Compare the numpy integration functions to the ones found in compphys So what really are we comparing? Can you elaborate?

tirthbha commented 9 months ago

@reshnashrestha Have you done the task1 and task2?

reshnashrestha commented 9 months ago

I overviewed the task. Group members are working on it. I have generated the library with all functions. In general, I think that task 3 can be done to some extent without huge dependency in other tasks so if it’s possible we can proceed. Have you started?

tirthbha commented 9 months ago

@reshnashrestha I am trying to figure out the issue that I encountered for the integral calculation, which is as follows: Although I handled the singularity at x=0 for the functions: exp(-1\x)[return np.where(x != 0, np.exp(-1/x), 0)] and cos(1/x) [return np.where(x !=0, np.cos(1/x),0)] I am getting the warning "RuntimeWarning: divide by zero encountered in divide
How have you handled this issue in your case?

tirthbha commented 9 months ago

@reshnashrestha We can find out the roots by using simplest method like Bisection method and Newton-Raphson method, right?

reshnashrestha commented 9 months ago

You are right. Which methods do you adopted? Are they working? Do we need to make any changes?

tirthbha commented 9 months ago

@reshnashrestha Yes both are working efficiently.

reshnashrestha commented 9 months ago

That’s great.

reshnashrestha commented 9 months ago

What is your update on task 3

tirthbha commented 9 months ago

@reshnashrestha Are we supposed to compare the results obtained from the three methods ( in task1) with those obtained from numpy integration?

tirthbha commented 9 months ago

@reshnashrestha Have you done first point of task 3?

AhmedCode99 commented 9 months ago

Do you need any help?

tirthbha commented 9 months ago

Everything is well now!