Jump to content



Photo
- - - - -

Question About Using Lists


  • Please log in to reply
2 replies to this topic

#1 josephlo

josephlo

    Newbie

  • Members
  • Pip
  • 13 posts

Posted 12 April 2008 - 03:18 PM

I have created 2 lists using the "STATS" menu.

The data are as follows:

List 1 - 14.8, 8.91, 5.57
List 2 - 0.168, 0.156, 0.143

I can retrieve the value using command such as List 12 and List 23, etc.

Now I have the following routine which reads as follows:

"Cable size="?->C
1.5 => 1->X
2.5 => 2->X
4 => 3->X
"Resistance of this cable=":List 1×
"Reactance of this cable=":List 2×

Problem is that the List 1× in the above routine will always returned List 13 no matter what.

Ideally, if I input 1.5 as value C, I would like the output as follows:
"Resistance of this cable=":14.8
"Reactance of this cable=":0.168

And if I input 2.5 as value C, the output should be:
"Resistance of this cable=":8.91
"Reactance of this cable=":0.156

What did I do wrong? Please help.

Thanks

#2 IbmPad

IbmPad

    Casio Fan

  • Members
  • PipPip
  • 35 posts
  • Location:France
  • Interests:- Programming (PC and Calc)<br />- Old calculators<br />- Piano<br />- Foreign languages

  • Calculators:
    CP-330 / FX-9860G SD / HP-49G+ / HP-48G / AFX 2.0+ / FX-795P / FX-4500P / FX-8500G/ FX-4000P / FX-602P / FX-7000G / FX-6800G / FX-702P / PB-700 / Sharp PC-1403 / Электроника МК-61 / TI-57 II / FX-180PV / FX-82 / FX-82D / FX-92

Posted 12 April 2008 - 06:42 PM

"Cable size"?→C
1.5⇒1→X
2.5⇒2→X
4⇒3→X

The instruction ⇒?runs a second instruction if a?condition?is?right?(eg:?A≠1⇒3→X?means?:?if?A?is?not?equal?to?1,?then?put?3?in?X)
You must do like this :
"Cable size"?→C
	C=1.5⇒1→X
	C=2.5⇒2→X
	C=4⇒3→X


#3 josephlo

josephlo

    Newbie

  • Members
  • Pip
  • 13 posts

Posted 13 April 2008 - 02:41 AM

Works great! Thanks :rolleyes:


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users