Help with FORTRAN error message

  • Context: Comp Sci 
  • Thread starter Thread starter Daniel1992
  • Start date Start date
  • Tags Tags
    Error Fortran
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
Daniel1992
Messages
21
Reaction score
0

Homework Statement



I get the follwing error message in the FORTRAN program I am trying to code.

P(i)=(1/(sigma*sqrt(2*Pi)))*e^(-(x-xbar)^2/(2*sigma^2))
----------------------------1
Error: Invalid character in name at (1)

I assume this means there is something it doesn't like about 2*Pi but I can't work out what it is.

Any help would be appreciated.
 
Physics news on Phys.org
Well that was abvious :rolleyes:

forgot that '**' is used to creates powers.

Thanks for that :)