Skip to content

Conversation

KristofferC
Copy link
Member

@KristofferC KristofferC commented Mar 29, 2019

julia> @enter sin(2.0)
In sin(x) at special/trig.jl:30
>30  absx = abs(x)
 31  if absx < T(pi)/4 #|x| ~<= pi/4, no need for reduction
 32      if absx < sqrt(eps(T))
 33          return x
 34      end

About to run: (abs)(2.0)
1|debug> w add __FRAME__.pc
1] __FRAME__.pc: 4

1|debug> w add __FRAME__.framedata.ssavalues[5]
1] __FRAME__.pc: 4
2] (__FRAME__.framedata).ssavalues[5]: UndefRefError()

1|debug> nc
In sin(x) at special/trig.jl:30
 30  absx = abs(x)
>31  if absx < T(pi)/4 #|x| ~<= pi/4, no need for reduction
 32      if absx < sqrt(eps(T))
 33          return x
 34      end
 35      return sin_kernel(x)

About to run: (Float64)(π = 3.1415926535897...)
1|debug> w
1] __FRAME__.pc: 6
2] (__FRAME__.framedata).ssavalues[5]: 2.0

TODO: Docs + test

cc @vchuravy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant