result = myQ(2.0, 1.0, neg = True) * myQ(2.0, 1.0, rec = True) [on hold]
up vote
-3
down vote
favorite
=1| def myQ(num, den, rec = False, neg = False):
2| if rec:
3| if neg:
4| return den / -num
5| else:
6| return den / num
7| else:
8| return num / den
python
New contributor
put on hold as unclear what you're asking by Graipher, Martin R, πάντα ῥεῖ, Toby Speight, vnp yesterday
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-3
down vote
favorite
=1| def myQ(num, den, rec = False, neg = False):
2| if rec:
3| if neg:
4| return den / -num
5| else:
6| return den / num
7| else:
8| return num / den
python
New contributor
put on hold as unclear what you're asking by Graipher, Martin R, πάντα ῥεῖ, Toby Speight, vnp yesterday
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
Please edit your post into shape: 1) format your code as a proper code block (remove lines numbering and use 4 space in front of each line) 2) describe what your code is doing 3) summarize what the code is doing into your title 4) tell us if your code is working as intended. Thanks!
– Mathias Ettinger
yesterday
add a comment |
up vote
-3
down vote
favorite
up vote
-3
down vote
favorite
=1| def myQ(num, den, rec = False, neg = False):
2| if rec:
3| if neg:
4| return den / -num
5| else:
6| return den / num
7| else:
8| return num / den
python
New contributor
=1| def myQ(num, den, rec = False, neg = False):
2| if rec:
3| if neg:
4| return den / -num
5| else:
6| return den / num
7| else:
8| return num / den
python
python
New contributor
New contributor
New contributor
asked yesterday
Christopher Mitchell
1
1
New contributor
New contributor
put on hold as unclear what you're asking by Graipher, Martin R, πάντα ῥεῖ, Toby Speight, vnp yesterday
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as unclear what you're asking by Graipher, Martin R, πάντα ῥεῖ, Toby Speight, vnp yesterday
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
Please edit your post into shape: 1) format your code as a proper code block (remove lines numbering and use 4 space in front of each line) 2) describe what your code is doing 3) summarize what the code is doing into your title 4) tell us if your code is working as intended. Thanks!
– Mathias Ettinger
yesterday
add a comment |
1
Please edit your post into shape: 1) format your code as a proper code block (remove lines numbering and use 4 space in front of each line) 2) describe what your code is doing 3) summarize what the code is doing into your title 4) tell us if your code is working as intended. Thanks!
– Mathias Ettinger
yesterday
1
1
Please edit your post into shape: 1) format your code as a proper code block (remove lines numbering and use 4 space in front of each line) 2) describe what your code is doing 3) summarize what the code is doing into your title 4) tell us if your code is working as intended. Thanks!
– Mathias Ettinger
yesterday
Please edit your post into shape: 1) format your code as a proper code block (remove lines numbering and use 4 space in front of each line) 2) describe what your code is doing 3) summarize what the code is doing into your title 4) tell us if your code is working as intended. Thanks!
– Mathias Ettinger
yesterday
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
1
Please edit your post into shape: 1) format your code as a proper code block (remove lines numbering and use 4 space in front of each line) 2) describe what your code is doing 3) summarize what the code is doing into your title 4) tell us if your code is working as intended. Thanks!
– Mathias Ettinger
yesterday