/hw2

hw2 for HPC21

Primary LanguageC++

hw2

hw2 for HPC21

Q1:See code,I changed the delete[] to free() in val_test01 and initialized with an array of 0s in val_test02.

Q2:I attached the timing and performance data at the bottom of the code. The computer I am using has a Intel i7-8700 CPU @ 3.2GHz.

Q3:I added more terms to the sin4_vec() function. I attached the explanation of the extra credit problem at the bottom of the code.