113 karma · joined February 23, 2011
x and y are more commmonly used to represent real numbers.
let r,n=Random(),1e7
let d()=(r.NextDouble()-0.5)**2.0
[0.0..n]
|>Seq.sumBy(function _ when d()+d()<0.25->4.0/n|_->0.0)
|>printfn "%f"1) Unlike EU commissioners, people can vote Theresa May out at the next general election. 2) The UK has a parliamentary democracy. It is not a presidential system. Theresa May was elected by her constituents. 3) Of the 14 prime ministers since the end of the Second World War, half of them (including Theresa May) assumed office between elections.
In no way is it "almost certain" that investment in the UK will decrease. The evidence currently suggests the complete opposite. Look at the performance of the FTSE100 since the referendum to see the flood of foreign investment coming into the UK listed companies thanks to the weaker currency.
I'd also point out that decreasing tax rates is the exact opposite of what the chancellor said he would do before the referendum.
We saw this recently in the UK when the top rate of income tax was raised to 50% and the income to the treasury actually fell.
https://www.timeshighereducation.com/world-university-rankin...
If you can indeed encode all the primitives needed to more formally describe an experiment this would be great.
Are you worried the language will endlessly grow in complexity as you find edge cases it doesn't support?