riceboyyy has asked for the wisdom of the Perl Monks concerning the following question:
The preview seems to have done strange things to the code, here it is in regular text: sub profit = { (((($x-10)/20)*(((-1)*((1/10)*(10-$x)*($x+1)+1000) + sqrt(((1/10)*(10-$x)*($x+1)+1000)**2 - (($x-10)/5)*(1000*$x+200)))/(2*($x-10)/20))**3)/3 +(1/2)*((1/10)*(10-$x)*($x+1)+1000)*(((-1)*((1/10)*(10-$x)*($x+1)+1000) + sqrt(((1/10)*(10-$x)*($x+1)+1000)**2 - (($x-10)/5)*(1000*$x+200)))/(2*($x-10)/20))**2+(1000*$x+200)*(((-1)*((1/10)*(10-$x)*($x+1)+1000) + sqrt(((1/10)*(10-$x)*($x+1)+1000)**2 - (($x-10)/5)*(1000*$x+200)))/(2*($x-10)/20))); }sub profit = { (((($x-10)/20)*(((-1)*((1/10)*(10-$x)*($x+1)+1000) + sqrt(((1/10)* +(10-$x)*($x+1)+1000)**2 - (($x-10)/5)*(1000*$x+200)))/(2*($x-10)/20)) +**3)/3 +(1/2)*((1/10)*(10-$x)*($x+1)+1000)*(((-1)*((1/10)*(10-$x)*($x ++1)+1000) + sqrt(((1/10)*(10-$x)*($x+1)+1000)**2 - (($x-10)/5)*(1000* +$x+200)))/(2*($x-10)/20))**2+(1000*$x+200)*(((-1)*((1/10)*(10-$x)*($x ++1)+1000) + sqrt(((1/10)*(10-$x)*($x+1)+1000)**2 - (($x-10)/5)*(1000* +$x+200)))/(2*($x-10)/20))); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Illegal subroutine
by toolic (Bishop) on Oct 24, 2011 at 18:33 UTC | |
by rgiskard (Hermit) on Oct 25, 2011 at 04:37 UTC | |
|
Re: Illegal subroutine
by Corion (Patriarch) on Oct 24, 2011 at 18:34 UTC |