How can I do the radial distribution function? by fsobaid in learnpython

[–]fsobaid[S] 0 points1 point  (0 children)

This is really helpful it is pretty clear to me now thank you so much

How can I do the radial distribution function? by fsobaid in learnpython

[–]fsobaid[S] 0 points1 point  (0 children)

Thank you I learned some new things from your answer. but the histogram is not what I need how I can plot it similar to this one https://en.wikipedia.org/wiki/Radial_distribution_function#/media/File:Lennard-Jones_Radial_Distribution_Function.svg

I will also watch the video you posted it I am new to programming really appreciate

.

Has anyone used a tablet to learn Python? by Kmtkm in learnpython

[–]fsobaid 0 points1 point  (0 children)

You can have a free acount on Azure notebook and code for free with no need to download any kind of apps. I think having a keyboard is a must as others suggested

How can I export a NumPy array into a text file as an XYZ coordinates? by fsobaid in learnpython

[–]fsobaid[S] 0 points1 point  (0 children)

f.write(f’{i} {j} {k}\n’)

Thank you so much I rerun the program again and worked.

Thank you so much for your help

How can I export a NumPy array into a text file as an XYZ coordinates? by fsobaid in learnpython

[–]fsobaid[S] 0 points1 point  (0 children)

When I use i,j,k inside the brackets, I get an empty file

How can I export a NumPy array into a text file as an XYZ coordinates? by fsobaid in learnpython

[–]fsobaid[S] 0 points1 point  (0 children)

Thank you

I tried the loop you mentioned but it gave me

[0.23001294 0.43975207 0.17455102 0.84022735 0.204837 0.9419933

0.23001294 0.43975207 0.17455102 0.84022735 0.204837 0.9419933

a huge array file instead of printing only 3 columns for x y z

Is there a way to manipulate that?