Author Topic: Programming Speed  (Read 9901 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
Re: Programming Speed
« Reply #30 on: June 02, 2010, 07:19:11 pm »
The seq() command returns a list.

For example:
Code: [Select]
seq(X^2,X,1,3would return
Code: [Select]
{1,4,9}
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 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: Programming Speed
« Reply #31 on: June 02, 2010, 07:21:15 pm »
The TI manual is very unoptimized, but how would you use sum( the way you used it? Doesn't the first argument have to be a list?
Oh, sorry, I thought it was used for summing a list.  If you're not using a list, then TI's correct.  My bad. :)

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: Programming Speed
« Reply #32 on: June 02, 2010, 07:23:29 pm »
The seq() command returns a list.

For example:
Code: [Select]
seq(X^2,X,1,3would return
Code: [Select]
{1,4,9}

I didn't mean the sum(seq([exp],[var],[start],[finish] combination. I meant that I didn't understand the bit of code ztrumpet suggested:

]WHAT?!
This was in TI's manual?  I hope they know that sum([exp],[start],[finish] is smaller and faster.  What was TI thinking! :D
Which manual was it, 2.43 or 2.53?

It doesn't work on my TI-83 Plus, for some reason. It can only take a list as the first argument. Is it different on the 84 Plus series?
« Last Edit: June 02, 2010, 07:28:22 pm by Deep Thought »




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: Programming Speed
« Reply #33 on: June 02, 2010, 07:25:15 pm »
No, it's only for a list.  I was thinking the sum(seq([exp],[var],[start],[finish] was to be used on a list (with a list as [exp] ).  Sorry about this misunderstanding. :)
« Last Edit: June 02, 2010, 07:25:41 pm by ztrumpet »

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: Programming Speed
« Reply #34 on: June 02, 2010, 07:29:01 pm »
No, it's only for a list.  I was thinking the sum(seq([exp],[var],[start],[finish] was to be used on a list (with a list as [exp] ).  Sorry about this misunderstanding. :)

Oh, got it.