GhostBasenji - 10 months ago 63

C# Question

The equation is:

Is it true I have written?

`Double x = 14.26`

Double y = -1.22

Double z = 3.5 * Math.Pow(10.0, -2)

Double t;

t = ( 2 * Math.Cos( x - Math.PI / 6 ) ) / ( 0.5 + Math.Pow( Math.Sin( y ), 2 ) ) * ( (1 + Math.Pow( z, 2 ) ) / ( 3 - Math.Pow( z, 2 ) / 5 ) );

Because the result does not coincide with the above desired result -- t = 0,188451240697501, and I need to t deduced 0.564849.

Answer Source

I think that one error it is here:

```
((1 + Math.Pow(z, 2)) / (3-Math.Pow(z, 2)/5))
```

you should do:

```
(1 + (Math.Pow(z, 2) / (3-Math.Pow(z, 2)/5)))
```