I was able to get this to work by setting up a drawing window like this
before trying "0 255 0 dpoly p1":

_2 _3 2 3 dwin 'example'



On Mon, May 22, 2023 at 4:09 PM Devon McCormick <[email protected]> wrote:

> Trying to reproduce this error, I get a different error at the same step
> (for version 9.4.22 on Windows 10 running JQt):
>
> |value error: SC
>
> | Y=.x:^:_1 SC 2{."1 y
>
> I will look into this and report what I find.
>
>
> On Mon, May 22, 2023 at 4:03 PM Nils Reuße <[email protected]> wrote:
>
>> Hi all,
>>
>> I bought Part 1 of Cliff Reiters book "Fractals, Visualization and J,
>> Fourth edition“ and am trying out the introduction examples.
>>
>> It first tells me to load an add-on, dwin.ijs [1], and then to create a
>> window, which works:
>>
>>    load '~addons/graphics/fvj4/dwin.ijs'
>>    _1 _1 1 1 dwin 'hello'
>>
>> Now, some data is created in p1:
>>
>>    ]p1=: |:2 1 o./ 1r4p1*i.5
>>           1           0
>>    0.707107    0.707107
>> 6.12323e_17           1
>>   _0.707107    0.707107
>>          _1 1.22465e_16
>>
>> And finally, the data is supposed to be drawn with ‚dpoly‘, which fails:
>>
>>    0 255 0 dpoly p1
>>
>> |psel : command failed: psel
>> : wd
>> |   (LF,~wd ::(''"_)'qer')    (13!:8)3
>>
>>
>> The book states that the examples were tested with J8.04, I’m on
>> J9.4.2/j64arm/darwin. There is an official repository containing the code
>> for the book [2], but it might be out of date anyways.
>>
>> Is the code incompatible with J9.4 or am I doing something wrong?
>>
>> - Nils
>>
>>
>> [1] https://github.com/jsoftware/graphics_fvj4/blob/master/dwin.ijs
>> [2] https://github.com/jsoftware/graphics_fvj4
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
>
> --
>
> Devon McCormick, CFA
>
> Quantitative Consultant
>
>

-- 

Devon McCormick, CFA

Quantitative Consultant
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to