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?

Any thoughts on this would be appreciated.

thanks


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

Reply via email to