Benchmark AI / Public workspace

SciCode / 51.2 / Write a function to aggregate the net forces on each atom for a system of atoms…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

step background

Background
Newton's third law:
Force on j due to i is negative of i due to j

step description prompt

Write a function to aggregate the net forces on each atom for a system of atoms interacting through Lennard Jones Potential. The function that computes the force between two particles interacting through Lennard Jones Potantial is given. The inputs of the function contain a float sigma, a float epsilon and positions, which is a N by 3 array of float. The output is forces, which is a N by 3 array of float numbers, and N is the nubmer of atoms.

Discussion

Discussion

No discussion posts on this page yet. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.

Source and history

Official source

initial import