Question: Im using python 3 and already have all the data required from previous tasks Write in two external files called 'Deg_grid.txt' and 'Etot grid.txt' the
Im using python 3 and already have all the data required from previous tasks Write in two external files called 'Deg_grid.txt' and 'Etot grid.txt' the data calculated in previous tasks, E and angle, respectively. For the format of the file, use the same xy grid format available from the files in Taks 1 -InDeg-grid.txt., provide the angles in degrees. Add a meaningful header to the file. The file should be human readable, meaning that the data should be written with a defined formatting: Use floating point format for the angles with two decimal places (e.g., 12.12), and scientific notation format for the electric field E, with five decimal places (e.g. 1.12345e+01)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
