English 中文(简体)
在TI-84+更大名单上找到一个子
原标题:find sublist within larger list on a TI-84+
  • 时间:2023-01-19 06:13:06
  •  标签:
  • ti-basic

我把快车用在我的计算器上,使天花在天线上。 该次名单将永远是2天。

我知道:

max(not(L1-X))

但是,这只是对价值1的检查,我需要检查该次清单(X,Y})而不仅仅是X......。

the issue is, the larger you get, the slower the snake moves, because the list can get over 100 characters long. the code that I m using:

:0 -> T
:For(I,2,dim(L1)-2,2):
:(L1(I-1)=X)(L1(I)=Y) + T -> T
:if T ≥ 1:Then:1->P:End
问题回答

您可以储存坐标如下:complex number,而不是相邻数字。 复杂的数字必然代表2个迪加价值,因此,许多业务在2D坐标线进行操作时只绘制了地图。 例如,将三个坐标(1、1、1、2、2、2、2、2、2、2、2、2、2、2、2、2、2、2、2、2、2、2、2为<代码>储存为<代码>{1+1+1i、1+2i、2+2i}。

为了将坐标转换成复杂的编号,你只需要使用想象力单位i,如X+Yi

为从一个清单要素<代码>I中提取坐标,您可提取该要素的实际和想象部分,real(L1(I)-X>.imag(L1(I)——Y

您可核查在一份综合数字清单中列入协调内容,该清单使用经修改的表格max(not(abs(L1-(X+Yi)))。 (a) 如果复杂数字的成分为XY,则该编号为零。





相关问题
TI-84 Multiple Menu Program

So when you make a menu using the Menu() function, It goes: Title Option 1 Option 2 Option 3 Etc... But almost every menu already on the calculator has multiple titles that you can choose from, then ...

TI-Basic: How do you get an equation as an input?

I was playing around with programming on my TI-84 in math class today and I decide to try to write a program that reads an equation and than does a few things with it. But I m having trouble reading ...

Custom function writing on calculator

I m sitting here with my TI-89 Titanium and having fun writing some custom functions for this test on friday. Question: bmp(b1,b2,b3) Func binompdf(b1,b2/100,b3)*100 What do I need to input to make ...

Minimalistic approach for a Snake-style game

I received my TI-82 STATS programmable calculator (which is in fact more of a TI-83) about two days ago - and wanted to program a Snake game with the builtin TI-BASIC language. Although I had to find ...

TI83+ evaluate expression program

I would like to build a program in a TI-83+ that will prompt for the variables x, y, and z, and then prompt for an expression on the terms x, y, and z. Is it possible to prompt for that expression and ...

Effective functional sort

I m programming a function for a TI-Nspire, so I can t use the builtins from inside a function. What is the most generally efficient algorithm for sorting a list of numbers without modifying the list ...

热门标签