Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "math"
- )
- func main() {
- incx := 0.01
- incy := 0.1
- for x := 0.0; x < math.Pi/2.0; x+=incx {
- for y := 0.0; y < 10.0; y+=incy {
- z := math.Sin(x) - y*math.Cos(x)
- r := math.Sqrt(1 + math.Pow(y, 2))
- q := math.Acos(1/r)
- x2 := math.Asin(z/r) + q
- if x - x2 > 0.0001 {
- fmt.Println(x, x2)
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement