Bureaucrats, cc_docs_admin, cc_staff
2,318
edits
No edit summary |
|||
Line 21: | Line 21: | ||
= Code examples = | = Code examples = | ||
OpenACC can be used in [[Fortran]], [[C]] and [[C++]], which we illustrate here using the simple example of an integral expression for the arctangent to compute an approximation for the value of <math display="block">\pi = 4\int_0^1 \frac {dx}{1+x^2}</math>, | OpenACC can be used in [[Fortran]], [[C]] and [[C++]], which we illustrate here using the simple example of an integral expression for the arctangent to compute an approximation for the value of <math display="block">\pi = 4\atan(1) = 4\int_0^1 \frac {dx}{1+x^2}</math>, | ||
<tabs> | <tabs> | ||
<tab name="C"> | <tab name="C"> |