Ask Your Question
0

passing function to a function

asked 5 years ago

Orange gravatar image

updated 5 years ago

Would any body please help in making following work?

def test(f):
 plot(f)

test(x+1)
Preview: (hide)

Comments

2

Rather add the missing "return".

FrédéricC gravatar imageFrédéricC ( 5 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 5 years ago

Orange gravatar image

never mind.. I figure this out.

def test(f):
 show(plot(f))

test(x+1)
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 5 years ago

Seen: 175 times

Last updated: Mar 29 '20