Question: For problem 3 set L=1 and x=1. please help me write marco in Excel VBA. thx. The equation t = (-1)^n - 1/2n + 1

For problem 3 set L=1 and x=1.
please help me write marco in Excel VBA. thx.
The equation t = (-1)^n - 1/2n + 1 cos ((2n + 1) pi x/L) is zero for even values of n. Use an if-else structure to compute this equation which sets t = 0 for even n and makes the correct computation for odd values of n. Set x and L equal to 1. (x = 1 and L=1) Write a macro fsub) that reads n from the spead sheet and Prints out a message with the value of n and the value of t
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
