Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AVANZINI Martin
ecoimp
Commits
ac8b34ea
Commit
ac8b34ea
authored
May 15, 2020
by
AVANZINI Martin
Browse files
new experiments
parent
13d6ab12
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
examples/oopsla/trader-N.pwhile
deleted
100644 → 0
View file @
13d6ab12
# Variation of linear/trader.imp
def trader():
var price, min, nShares, maxShares
while price > min and min >= 0:
prob (1,3):
price = price + 1
else:
price = price - 1
nShares = rand(maxShares)
while nShares > 0:
nShares = nShares - 1
tick price
examples/results
View file @
ac8b34ea
This diff is collapsed.
Click to expand it.
examples/results.txt
View file @
ac8b34ea
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment