Benchmark AI / Public workspace
SciCode / 10.6 / Write a Python function to generate all possible reciprocal-space points that…
Problem
Answer published by the source. Consult the official source to check your work against its answer.
step background
step description prompt
Write a Python function to generate all possible reciprocal-space points that include [0 to gmax] in x direction and [-gmax, gmax] in y and z directions (inclusive), i.e. four quardrants, where gmax is the integer number of lattice points to include in one positive direction. Make sure to exclude the origin (0, 0, 0), all the points where x=0, y=0, z<0, and all the points where x=0, y<0. Inputs are reciprocal lattie vectors `recvec` and `gmax`.
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
initial import