Author Topic: Check if there are changes between two lists?  (Read 4896 times)

0 Members and 1 Guest are viewing this topic.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Check if there are changes between two lists?
« on: June 01, 2010, 11:25:24 pm »
Is there a way to do this?
I think there is a relativity test for this but it escapes me.

First try:
:If {A,B,C,D,E,F,G,H,I,J,L,M,N}<>LLTSAV

Second try:
:If (delta)List({A,B,C,D,E,F,G,H,I,J,L,M,N})<>((delta)List(LLTSAV)

sum() has that possibility of the sums still equaling. So, I don't want to use that...
« Last Edit: June 01, 2010, 11:26:01 pm by Raylin »
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Check if there are changes between two lists?
« Reply #1 on: June 01, 2010, 11:27:41 pm »
Mmm you want to see if two lists are exactly equal you mean?

_player1537

  • Guest
Re: Check if there are changes between two lists?
« Reply #2 on: June 01, 2010, 11:28:32 pm »
didn't test this, but will this work?

Code: [Select]
if (sum(L1=L2))=Dim(L1
[the lists match]

Edit: but first you should make sure the dimensions are the same
« Last Edit: June 01, 2010, 11:30:37 pm by _player1537 »

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Check if there are changes between two lists?
« Reply #3 on: June 01, 2010, 11:31:24 pm »
you mean like max({1,2}=|={2,2}) which will return 1 because the are not the same?
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Check if there are changes between two lists?
« Reply #4 on: June 01, 2010, 11:35:18 pm »
@player: It works!

I need to see how that evaluates! That is funky!

EDIT: I understand now! L1 and L2 performs the relativity test and returns a list. You find the sum of that list and if it's the dimensions of the original list, then execute the code...

Awesome! :D
« Last Edit: June 01, 2010, 11:39:32 pm by Raylin »
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Check if there are changes between two lists?
« Reply #5 on: June 01, 2010, 11:50:03 pm »
seeing what youre trying to do, i think min(L1=L2) should be better...
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Check if there are changes between two lists?
« Reply #6 on: June 01, 2010, 11:53:18 pm »
didn't test this, but will this work?

Code: [Select]
if (sum(L1=L2))=Dim(L1
[the lists match]

Edit: but first you should make sure the dimensions are the same

you mean like max({1,2}=|={2,2}) which will return 1 because the are not the same?

Does anyone know which command is faster? I'd think it's max(, but I'm not sure.
« Last Edit: June 01, 2010, 11:54:16 pm by Deep Thought »




Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Check if there are changes between two lists?
« Reply #7 on: June 02, 2010, 12:02:49 am »
you want not(min(L1=L2   and i belive max(L1=/=L2 is faster but i did not test it

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Check if there are changes between two lists?
« Reply #8 on: June 02, 2010, 08:48:54 am »
I think you want min(L1=L2.  This will return 1 if L1 and L2 are equal everywhere. :)
« Last Edit: June 02, 2010, 04:41:56 pm by ztrumpet »

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Check if there are changes between two lists?
« Reply #9 on: June 02, 2010, 10:17:47 am »
no, because {1,2}={1,1} will be {1,0} of which the max is 1 even tho it is not completely equal.  That's only for if you just want to know if any are equal.  You would have to do what builderboy said (which is also what i said :P)
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Check if there are changes between two lists?
« Reply #10 on: June 02, 2010, 04:41:49 pm »
no, because {1,2}={1,1} will be {1,0} of which the max is 1 even tho it is not completely equal.  That's only for if you just want to know if any are equal.  You would have to do what builderboy said (which is also what i said :P)
Gah, sorry, I definitely failed.  Min is correct.  Thanks for pointing it out. :