passing function to a function
Would any body please help in making following work?
def test(f):
plot(f)
test(x+1)
Would any body please help in making following work?
def test(f):
plot(f)
test(x+1)
never mind.. I figure this out.
def test(f):
show(plot(f))
test(x+1)
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2020-03-29 07:38:23 +0100
Seen: 283 times
Last updated: Mar 29 '20
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
Rather add the missing "return".