No, Raul, the C and D are summed before the multiplication.

Raul Miller wrote:
> On Wed, Apr 28, 2010 at 10:59 AM, Randy MacDonald <[email protected]> wrote:
>   
>> Something I have not seen in the responses, which uses forks, is:
>>
>>   A =: 0&{
>>   B =: 1&{
>>   C =: 2&{
>>   D =: 3&{
>>
>> leading to:
>>
>>   ExpectedVolatility =: (A+B)*C+D   NB. usage: ExpectedVolatility data
>>     
>
> I think that should have been:
>
>    ExpectedVolatility =: ((A+B)*C)+D
>
> because (A+B)*C+D was "non j notation" which means, from a J
> programmer's point of view, that there was an implicit parenthesis
> surrounding everything to the left of the + signs.
>
>   
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to