*** For details on how to be removed from this list visit the ***
*** CCP4 home page http://www.ccp4.ac.uk ***
On Wed, 31 May 2006, Eleanor Dodson wrote:
> ...
>
> Kevin Cowtan wrote:
>
> ...
>
> > Qing Xie wrote:
> >
> >> Hi,
> >>
> >> Does anyone know the formula/or equation to calculate the
> >> Hendrickson-Lattman Coefficients from known Fmodel and phase?
> >> Once the formula is known, I can code it with fortran. Should I use
> >> degree or radian regarding phases?
> >>
> >> In addition, how to extract the A and B term (in complex A + iB) from
> >> the known Fmodel and phases as well?
> >>
> >> Thanks a lot!
> >>
> >> Qing
For the latter it's fairly easy:
A = |Fmodel| * cos(phase)
and
B = |Fmodel| * sin(phase)
Depending on your programming language, you will have to check how phases
have to be expressed (radians?) to get a sensible value for the
trigonometric functions sine and cosine. There may be sind and cosd
functions that take phase angles in degrees, this depends on the language
(Fortran from your post) and the compiler you're using. For Fortran, the
cos and sin functions have as arguments angles expressed in radians.
Fred.
--
s-mail: F.M.D. Vellieux (B.Sc., Ph.D.)
Institut de Biologie Structurale J.-P. Ebel CEA CNRS UJF
41 rue Jules Horowitz
38027 Grenoble Cedex 01
France
Tel: (+33) (0) 438789605
Fax: (+33) (0) 438785494
e-mail: [EMAIL PROTECTED]