Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(tanx)'=sec²x=1+tan²x #2

Open
lls3018 opened this issue Dec 14, 2017 · 0 comments
Open

(tanx)'=sec²x=1+tan²x #2

lls3018 opened this issue Dec 14, 2017 · 0 comments

Comments

@lls3018
Copy link

lls3018 commented Dec 14, 2017

i think this is right!

def backward(self, X, top_diff):
output = self.forward(X)
return (1.0 + np.square(output)) * top_diff

beacuse (tanx)'=sec²x=1+tan²x

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

No branches or pull requests

1 participant