Message Boards Message Boards

0
|
4284 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Select ordered pairs below x^2 and count them?

Posted 5 years ago

I have the following code

enter image description here

I want to "Select" those ordered pairs below x^2 and count them.
something like

Count[Select[t,(x=#1, #2<x^2}]]

but that doesn't work, or anything else I have tried.

POSTED BY: Raymond Low
2 Replies
Posted 5 years ago

Beautiful, thank you Hans

POSTED BY: Raymond Low
Posted 5 years ago
In[1]:= t = RandomReal[1, {1000, 2}];

In[2]:= Length@Select[t, #[[2]] < #[[1]]^2 &]
Out[2]= 329
POSTED BY: Hans Milton
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract