A start is

    ]S =: {: p. _9 0 1
+----+
|3 _3|
+----+
    ]T =: {: p. _2 0 1
+----------------+
|1.41421 _1.41421|
+----------------+


[email protected] wrote:
> Given that:
> 
> S =: ( x : x^2 = 9) what is S
> 
> S is 3 -3
> 
> This can easily be done in your head.
> 
> How would one write J code that would do this?
> 
> On a more complicated note, how could one write in J code
> that would do:
> 
> S = ( x : (x^2)-2 = 0)
> 
> In this case S is 2^0.5 and _2^0.5
> 
> The general question is:
> 
> How does one write J code to determine a set based on a
> system of one or more equations?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to