mittinatten / freesasa

C-library for calculating Solvent Accessible Surface Areas
http://freesasa.github.io/
MIT License
103 stars 37 forks source link

Question: formula of alpha #81

Closed cycle20 closed 2 years ago

cycle20 commented 2 years ago

Hi, Can you explain how you get this formula? image Could you provide the steps for this? Thank you, Csongor

NOTE: On your documentation page there are misleading * in this formula: https://freesasa.github.io/doxygen/Geometry.html image It might be some kind of markup issue. I hope my version reflects your intention.

mittinatten commented 2 years ago

Hi, Thanks for reaching out! The error in the docs is a regression: some editor plugin that doesn't understand LaTeX must have changed _ to * (i.e. two ways to write italic in markdown). So this should not have passed through QA :). I have update the code and pushed the changes, the docs should be updated very soon.

The derivation is simply to apply the law of cosines to the triangle in the figure.

cycle20 commented 2 years ago

The derivation is simply to apply the law of cosines to the triangle in the figure.

@mittinatten thank you for your response. :+1: