Plotting BITAND
08-27-2022, 08:35 AM
Post: #1
 matalog Senior Member Posts: 349 Joined: May 2021
Plotting BITAND
I was attempting to see the change of X with BITAND(X,15) so I plotted it in Function app, Y=BITAND(X,15). It doesn't show in the plotting window, it is possible that some of the points show, but they are not easy to see, and I don't think many do show.

If I go to Num view, all of the integer numbers are there to see. Num and Plot setup with 1 as Tick and Step.

Why will that not plot?
08-27-2022, 11:47 AM
Post: #2
 roadrunner Senior Member Posts: 444 Joined: Jun 2015
RE: Plotting BITAND
They are there, it's just hard to see them. If you go to page 2 of the plot settings and turn off Axes, Grid Dots, and Grid Lines, then look real hard, you will see little dots.

08-27-2022, 12:37 PM
Post: #3
 matalog Senior Member Posts: 349 Joined: May 2021
RE: Plotting BITAND
Is there no way to join points together with lines to make them visible?
08-27-2022, 06:48 PM
Post: #4
 Joe Horn Senior Member Posts: 2,002 Joined: Dec 2013
RE: Plotting BITAND
(08-27-2022 12:37 PM)matalog Wrote:  Is there no way to join points together with lines to make them visible?

No, because if the points were connected, the graph would be false. But you can modify the function to make some nearby points visible, e.g. BITAND(IP(X),15). Modifying the function to turn the points into cute round dots (or diamonds or something) is left as an exercise for the student.

An alternative approach would be to plot this function as a scatter plot using the statistics app, which does have a "connect the dots" option. Goofy, but it works.

<0|ΙΈ|0>
-Joe-
08-27-2022, 07:03 PM
Post: #5
 Didier Lachieze Senior Member Posts: 1,634 Joined: Dec 2013
RE: Plotting BITAND
As the function is only defined for integers you can also use the Sequence app with U1(1)=1 and U1(N)=BITAND(N,15).
08-29-2022, 12:32 AM
Post: #6
 matalog Senior Member Posts: 349 Joined: May 2021
RE: Plotting BITAND
(08-27-2022 07:03 PM)Didier Lachieze Wrote:  As the function is only defined for integers you can also use the Sequence app with U1(1)=1 and U1(N)=BITAND(N,15).

That's perfect, thanks.
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)