I think there isn't (unless someone allready built it). The question should be "can such a program be built on TI-Nspire?". Well, the answer is: it depends. (although in this case I believe it's perfectly possible to adapt the algorithm). You can't, in general, translate a program written for the TI-84 Plus to use directly on TI-Nspire. Not only are the languages substantially different (TI-Nspire's is more like the programming language on TI-89 Titanium or Voyage 200), but also the input of a program on TI-Nspire must be given at the beginning of the program, as arguments passed when calling the program. This means that it's not just a matter of finding the equivalent statements on TI-Nspire, as in some cases, there are no such equivalent statements. However... I'm sure it's possible to adapt or redesign (almost) all of TI-84+ programs to be used on TI-Nspire. The reason for this is that TI-Nspire's programming language is actually more powerfull and more flexible than the language of TI-84 Plus (with string manipulation, possibility of calling subroutines, defining functions, etc.). The greatest limitation is the inability to use graphical input and output, but this also can be overcome, in most cases, with 1% inspiration and 99% transpiration, using geometrical constructions, a spreadsheet and a few carefully designed functions. The "TI gaming community" strongly disagrees with this and there are a lot of users and developers complaining that TI-Nspire is impaired on what concerns programming. (actually, they're correct about the existence of limitations, they are wrong about the scope and relevance of such limitations). In this particular case, the program will need some input from the user that on a TI-84 Plus is asked with Input and Prompt statements. There are no such statements on TI-Nspire, but you can redesign in the following way: TI-84 Plus: Program Test Input "A=",A Input "B=",B Input "C=",C ..... TI-Nspire: test(a,b,c) Prgm ..... EndPrgm Instead of being prompted to enter data while the program is running, the user enters the data as arguments when the program is called. The rest of the program is most likely a sequence of computations that can (somewhat) easily be translated into TI-84 Plus. The output on a TI-Nspire program must be done using the Disp instruction only. Hope this helps. Let me know if you need any further help. Nelson On Thu, Mar 19, 2009 at 00:19, <Hovers...@aol.com> wrote: > Hi everyone, > > Yates, Moore, Starnes (authors of the The Practice of Statistics) included a > great program for the 84 to calculate the probability of a Type II error. > Does anyone know if there is a program out there to do the same thing on the > nspire? I know the nspire has the switchable keyboard, but I would love to > have a program for the nspire operating system. > > Thanks, > Heather Overstreet > Staunton River HS > Moneta, VA > ________________________________ > Feeling the pinch at the grocery store? Make dinner for $10 or less. > > >
Eric, what do you mean by 'classes'?
Cheers
Rex
Sorry didn't mean to imply that it would be easy to add a useful/ flexible input output system... Was just the designer in me doing a little dreaming!! I have managed to work round this need so far and am very pleased with my TI-Nspire!! Sent from my iPhone On 24 Mar 2009, at 04:27, Eagle-Man <eagl...@duetsoftware.net> wrote: > > "However, programming for the TI-Nspire, although more structured, > isn't more difficult than for the TI-84. It's in fact easier for the > non professional programmer as there are a few aids that allow you to > fix syntax errors or structured errors on a program in a much easier > way." > > Also, the fact that you can type in function and instructions names > into the editor makes it much easier to program. You don't have to > search through endless menus to find the command you're looking for, > you just type it. Also, should you need to search, the Catalogue has > several sorting methods which makes it easier to search. > > "I respectfully submit however that the need for such difficult > programing is not the natural result of inevitable technological > progress, but an example of technology gone awry." > > Joe, I disagree. As things like computers get more powerful, they > become more and more complicated to program. THIS is the nature of > technology. As you have guessed, I am a programmer. Not > "professional," but I obtained a Computer Science degree in 2005, and > I can say with out a doubt, that programming for computers has become > much, much more complicated in the last 10, even in the last 5 years. > > For an extreme example, look at Basic. Now open up a webpage that > contains javascript. It's really different, and more complicated, but > it can do more. And I could provide you with examples of C++ Win32 > programming for windows. To open a single window requires about a > page and a half of code. > > I respectfully submit to you that the more "difficult" programming is > a) necessary, and b) not that different. The TI-Nspire has a lot of > new features that are on the cutting edge for graphing calculators and > to control that, a more complicated language is needed. However, the > commands on the 83 is like a subset of the commands on the Nspire. > While some of the names of commands are different, I'd say about 90% > of the programs on the 83 (excluding games) can be easily translated > into Nspire programs without much effort. > > Please don't be so quick to disregard the capabilities of the Nspire. > Yes, it's new and different, but it's not a step back, as you say. If > you give it a shot, you'll see that for the most part, it's very > similar to the 83 Basic you're used to. You don't even need to learn > about the new functions or commands. And like Nelson said, there's a > whole group of people here that can help you with programs. > > If TI truly did simplify the programming capabilities, now that would > be a step back. We would lose much of the control that they've given > us in this new calc, such as the ability to detect errors and handle > them in different ways. > > I also noticed that you didn't mention the file I attached to my > previous email. Check it out. That took me less than 5 minutes to do > on my computer and required no programming (just the Teacher Edition > software). I think you might be pleased. > > "and until then you could always use the 84 faceplate for those > occasions when you feel the 84 would be a simpler solution and the > Nspire faceplate for those other occasions..." > > That's another option. They include an 84 faceplate for a reason. > > "I was thinking the kind of solution I would like to see to this input > output issue would be a 'inputbox' type command like that in VBA which > could just pop-up a dialogue box where the user could enter a > value/string, but could also be used to produce a kind of pop-up > window which could display a message with > an OK button to close." > > Andy: I'm sure that this is what TI is considering, but it's much > easier said than done. Some of the ability is obviously there, but to > be able to make it user-customizable and possibly use different > buttons; to take the value and put it into a variable of the user's > creation (it doesn't exist before, like the A-Z of the 84); to know > how to interpret the input and make sure it's of the type the user > wants; these are the hard parts, and it will probably take some time > to figure it out. Give them time. > > --Eric F. > > --- Original Message --- > >> >> Joe: >> >> I'm not a computer programmer. Not a professional one, not even a >> semi-professional one. I'm a Physics graduate and I went to grad >> school to study Mathematics (differential geometry). My first contact >> with programming of any sort was on a Casio scientific calculator >> (step-by-step programming) in middle grades and then on the TI-85 in >> high school (I didn't even own a computer until I was 17!). >> Although I >> can do small stuff on a computer, I'm actually more skilled at >> programming TI calculators. >> >> I agree with you that TI-Nspire takes time to master. Of course it >> does, it's power is almost endless! However, programming for the >> TI-Nspire, although more structured, isn't more difficult than for >> the >> TI-84. It's in fact easier for the non professional programmer as >> there are a few aids that allow you to fix syntax errors or >> structured >> errors on a program in a much easier way. It is, of course, more time >> consuming, as you allready know how to program TI-84 Plus and haven't >> learned about TI-Nspire yet. But that will always happen anytime >> something significant changes! >> >> You don't need to be a full-time Nspire developer to create beautiful >> things. You have always the group where you can ask anything and >> someone might be able to answer. >> >> TI-Nspire is much different than the TI-84 in a lot of ways, but, >> as I >> like to say when I'm introducing TI-Nspire to a group of teachers >> (I'm >> a full-time trainer and consultant in educational technology), we >> (all >> of us: TI, teachers, trainers, developers,...) can't pretend anymore >> that the world didn't evolve! Available technology is impressive and >> at maths class we were still using a calculator platform that was 15 >> years old (TI-84 Plus Silver Edition is just a TI-82 with some >> improvement). At some point evolution is required or else TI would be >> wiped out by the competition from PDAs, smartphones, netbooks, >> mathematics software, etc. That's what TI-Nspire tries to do, use the >> technological developments available and get them in reach of math >> teachers. >> >> I don't know whether TI will add more flexible input or output. IT >> seems to me that they started looking at other priorities first: a >> good geometry application, application interoperability, stat graphs, >> etc., and programming was left a bit behind as there was no time to >> develop everything at once. It doesn't seem to me that TI will leave >> things as they are in the long run. But we'll have to wait and see. >> >> >> >> As for the example you mention: that's a tough one! I'd suggest >> having >> a program and a geometry page in a split screen. As answers are >> probably multiple choice, my first atempt would be something like >> this: >> >> 1. Have a left/right split screen with G&G and calculator. >> 2. On the G&G page Create a set of points, as many as the questions >> you want, and type in the questions as labels of those points. If >> more >> than 1 line is needed, use a second point created as a translation of >> the 1st point by a fixed vector (so that both points move together). >> Store the coordinates on variables xq1. yq1, xq2, yq2, etc. >> 3. Do the same with your possible answers. store the coordinates as >> xa1, ya1, xb1, yb1, xc1, yc1, etc. >> 4. As you create more and more questions and answers, move the points >> away from the screen, so that they're not filling the screen >> completely. >> 5. Add a slider that can take an integer value from 1 to 4; minimize >> it so as to have only the up and down arrows. >> 6. Create a matrix with 1 line for each question. The first column is >> the correct answer, the second column is the question that follows >> this one if the student got the answer correctly and the third one is >> the question to follow if the answer is incorrect. >> 7. Add a spreadsheet and set-up a data capture from the variable >> you're controling with the slider. >> 8. Now, build the program! The initial data is: number of current >> question, last captured value from the slider. The last value of the >> spreadsheet tells you which option the student chose; compare with >> the >> answer on the first column of that matrix, and see if it's correct or >> not. Store the answer on a answer list and keep adding student's >> answers. >> 8a) in each run of the program, a large number is stored in the >> variables of the previous question, making it disappear. Using the >> question number from that matrix, store adequate values in the >> variables refering to the next question, making the points apprear on >> screen. This is where the power of the language comes into place: if >> variable question_num is 5, for example, a number, you can store >> something in xq5 by using #(xq&string(question_num)) - see >> indirection >> string on the reference manual, it's a very powerfull tool. >> >> In the end, all question branches should end with "next question is >> zero", so that the program knows when to stop doing anything. >> >> This is just a sketch, it will work, although it might not be >> spectacular. But it does the job... >> >> Although it may look really nasty to build (and it takes quite some >> time), the structure underneath it is somewhat similar to the one I'd >> use on a program for the TI-84 Plus to do the same thing. >> >> Hope this helps. >> >> >> Nelson >> >> >> >> On Mon, Mar 23, 2009 at 01:54, Joe <wjb...@yahoo.com> wrote: >>> >>> Nelson, I appreciate your well thought out post. It is obvious that >>> you are a very skilled professional programer and your message has >>> caused me to view nspire in a different light. The designers of >>> nspire have apparently raised calculator proformance to new levels >>> in >>> some areas. For example the abililty to store and work multiple >>> problems at once. In the process they have also raised >>> programming to >>> more powerful but also more difficult levels that are workable for >>> professionals like you but not for people like me. >>> >>> I am not a professional programmer nor a simi-professional >>> programmer >>> nor even an advanced amatuer. I am just a guy that is good at math, >>> good at teaching math, and was able to write useful programs for the >>> 84 after an hour or so of study. I am also *extremely* busy >>> teaching >>> and taking care of family and household responsibilities. So if >>> (and >>> this seems be true) I have to devote a large amount of time to >>> obtaining semiprofessional programing skills in order to create >>> programs for nspire similiar to those I have for the 84, that just >>> isn't going to happen. Not for me and probably not for a lot of >>> other >>> people, dispite the admirable job this site is doing to promote >>> nspire >>> programing. >>> >>> For people like me, without input, output, and pause statements like >>> the 84 has, nspire might as well be a non-programmable >>> calculator. I >>> was surprized that TI initually allowed nspire programing to be so >>> difficult and I have hoped that would change for the better, but >>> apparently it will not. Again, I want to thank you for your well >>> thought out post. As I said, it has caused me to change the way I >>> view nspire. I had thought that eventually TI would provide input, >>> output, and pause statements for nspire. Now I think it more likely >>> that TI assumes an increase in the customers programming skills will >>> eventually make that unnecessary. >>> >>> On Mar 22, 2:07 pm, Nelson Sousa <nso...@gmail.com> wrote: >>>> Here's my two cents on this matter: >>>> >>>> There have been, since ever, huge criticisms about TI-Nspire's >>>> programming abilities. The developer's community turned it's back >>>> on >>>> TI-Nspire (although the true reason is purely because they can't >>>> program games in assembly like they did on the TI-84 Plus - just >>>> browse ticalc.org's archives and count the files in each folder), >>>> and >>>> a lot of users have been complaining. This is a fact, and I'm not >>>> here >>>> to judge anyone's opinion on the matter. There have been >>>> criticisms. >>>> >>>> In fact there's loss of flexibility (do not confuse flexibility >>>> with >>>> power, TI-Nspire has much MORE programming power than the TI-84 >>>> Plus, >>>> but less flexibility) on programing input and output. While on a >>>> TI-84 >>>> Plus you can add intermediate input, repeated input and menus and >>>> have >>>> your output either as text or as graphics, a program on TI-Nspire >>>> accepts only input as arguments and only displays output as text. >>>> This >>>> is also a fact. >>>> >>>> We have, however, functions. They are limited when compared to >>>> programs, as they cannot create or edit global variables, can't >>>> have >>>> try-endtry blocks, can't call programs and can only return an >>>> expression (numbers, lists, strings, matrices, etc.), not control >>>> more >>>> complex output. However, there are no functions on TI-84 Plus, >>>> there >>>> isn't either a try-endtry block (which is an outstanding >>>> instruction >>>> when dealing with user input, that allows one to trap errors much >>>> easier!) and there's almost no string manipulation. In TI-Nspire we >>>> have all the string manipulation allready present on TI-89 Titanium >>>> and Voyage 200 (although I'd like a few more functions that a guy >>>> gets >>>> used to). >>>> >>>> Functions can be called from other applications (spreadsheet, for >>>> example), and can be used to give you output updated in realtime, >>>> something that was impossible on TI-84 Plus (at least without some >>>> serious programming). Also their results can then be imported to >>>> a G&G >>>> page and transfered to an axis to create points that depend of the >>>> function's results. >>>> >>>> We can, using functions, have geometrical objects like points, >>>> measurements or sliders to define input of a function and have >>>> their >>>> results stored on a spreadsheet cell and inserted back to a G&G >>>> page. >>>> This allows one to create both graphical input and output. >>>> >>>> Also we can have a spreadsheet page define input and output, again, >>>> using a function. >>>> >>>> Using a program one's limited to the fact that a program must be >>>> called from the calculator app, eliminating the real time updates. >>>> >>>> If you look at the kind of content I've been creating you can see >>>> that >>>> there's a lot you can do in TI-Nspire. What you can't do is >>>> develop >>>> the same kind of contents in the same way as you did on the TI-84 >>>> Plus! But that's a completely different problem. "How you develop >>>> it" >>>> is a different question than "can it be developed". >>>> >>>> As for "why are things as they are, if users are complaining", >>>> here's >>>> my guess (it's merely a guess, I have no insiders info whatsoever): >>>> programming for a multi-page document structure on TI-Nspire is a >>>> totally different beast than creating the (rather simple using >>>> computer standards) programming language of a "classical >>>> calculator". >>>> On TI-84 Plus the command "DispGraph" displays the Graph Screen. >>>> The >>>> ONLY graph screen available on the TI-84 Plus. On TI-Nspire that >>>> instruction can mean (a) display the next available graph app, >>>> whatever that is, (b) display the first graph app or (c) create a >>>> new >>>> graph app and prepare to draw stuff on it. Among other meanings I >>>> haven't thought of! Being able to add 10 graphical windows in the >>>> same >>>> document is great, but a program needs to know which one do you >>>> mean >>>> when you ask it to display a graph. So, you'll need to set some >>>> sort >>>> of "document model", where you can define a page or application ID, >>>> and a non-cumbersome language to allow you to reand and write to >>>> each >>>> of these objects, given their ID. It's not an easy task, and just >>>> by >>>> looking at the current Document Object Model of the Internet >>>> pages, a >>>> standard a lot (thousands of people from all quadrants of the >>>> industry) of people took years developing, and the way some >>>> browsers >>>> (one should read Internet Explorer) messes things up, it's not >>>> something you want to jump in loosely. >>>> >>>> But the situation is the one we have now, there are differences, >>>> some >>>> are limiting, some others can be circumvented, but in total I'm >>>> of the >>>> opinion that: >>>> - TI-Nspire's programming language is BY FAR more powerfull than >>>> the >>>> one on TI-84 Plus, although LESS flexible; its power is similar >>>> to the >>>> programming language of TI-89/Voyage 200 and the like. >>>> - The flexibility can be, in many cases, circumvented by using >>>> original solutions. In fact, if one asks a question about >>>> development >>>> in this forum alone an answer will probably pop up in a matter of >>>> hours. >>>> - In other cases, some luminous idea is required and nobody got it >>>> yet, so things can be, at the time, impossible. >>>> >>>> Example of things that are limiting and annoying and cause >>>> complaints: >>>> >>>> Problem: need a dialog box to input data, as there are lots of >>>> parameters >>>> Solution: use a spreadsheet with the parameter's names on column >>>> A and >>>> input on column B. Use a function instead of a program (if >>>> possible) >>>> to display the results automatically on another spreadsheet cell. >>>> >>>> Problem: but my input is graphical! >>>> Solution: then, define it geometrically! If they're numbers, use >>>> sliders or pure text with numbers in them; store that in variables; >>>> call those variables on a spreadsheet. Define a function with the >>>> algorithm part of the program you want to build. Call it from the >>>> spreadsheet with the input you have allready stored in variables >>>> or in >>>> the spreadsheet cells. Store the function's result in another >>>> variable. >>>> >>>> Problem: I also want my program to draw stuff. >>>> Solution: Store the result on a variable and call it to the G&G >>>> page >>>> by either: creating a point and linking its coordinates to the >>>> variable or calculating an expression "x", using that variable as >>>> parameter "x". >>>> >>>> Problem: ah, but my program outputs text. >>>> Solution: on G&G use when statements that return either a >>>> adequately >>>> chosen number or undef; Use those results as point coordinates. >>>> Label >>>> the point with the text you want. >>>> >>>> Problem: but there are a LOT of text messages there. >>>> Solution: so what? Define a LOT of points! I said it's possible, >>>> not >>>> that it's easy ;) The periodic table uses 118 such messages and I >>>> lived through it!!! Twice, as I did it in English and in >>>> Portuguese! >>>> >>>> Problem: but I want free text. text can be anything >>>> Solution: ok, now you got me. Tell me exactly what you're trying to >>>> do, I'll think about it. Either I'll find a solution, or I won't. >>>> >>>> So, to go back to the concerns manifested here: >>>> - I have no idea whether a different paradigm is being prepared >>>> by TI >>>> (you'll have to ask them; although I wouldn't keep my hopes up if >>>> the >>>> project is ongoing but on an early stage, they probably won't tell >>>> you) >>>> - I find it very difficult to believe that something (other than >>>> games!!!) possible on TI-84 Plus is simply impossible on TI- >>>> Nspire. If >>>> I believed that I would have never created the sort of content I've >>>> been developing. >>>> - In some cases, there will be a loss of performance. But that's a >>>> different beast. Even in games, performance is the limiting factor, >>>> not power! All that I need to create games (even real time games) >>>> exists allready and you can "see it" in some of my constructions >>>> (if >>>> you look closely enough!). The only problem here is performance >>>> as you >>>> can't just add 2000 points to a G&G page and hope it runs fast. >>>> >>>> Believe it or not, I'm currently facing performance issues, not >>>> design >>>> issues, on a electronic circuit simulator, that would have a >>>> function >>>> generator and an oscilloscope with trigger and realtime display! >>>> And >>>> it's not the "how can this be built" that is bothering me, that's >>>> taken care of! It's the 1 to 2 seconds (on the computer software, >>>> not >>>> the handheld!) it takes to update the oscilloscope screen everytime >>>> something changes that's holding me back. (Oh, and there's not 1 >>>> single line of programming in a signal generator or an >>>> oscilloscope; >>>> well, maybe a few small functions, but only to try to gain some >>>> performance). >>>> >>>> My other ongoing projects include a battleship game (with fleet >>>> checking, score keeping and victory detection) and, just a proof of >>>> concept, a car game. With a track and some obstacles. But those >>>> projects take time, and they're not a top priority for me right >>>> now. >>>> >>>> Nelson >>>> >>>> >>>> >>>> On Sun, Mar 22, 2009 at 13:24, Joe <wjb...@yahoo.com> wrote: >>>> >>>>> Eric, for me and probably many others, it is grave because I can >>>>> not >>>>> create the kind of educational programs for the nspire that I >>>>> did for >>>>> the 84 series. I have been waiting for TI do do something about >>>>> this >>>>> problem for quite a while now and I am loosing hope. Do you see >>>>> any >>>>> indication at all that TI is going to fix this problem? Also, >>>>> what >>>>> advantage is there to severely limiting programability this way? >>>>> Shouldn't a newer product be at least as good as a previous >>>>> product? >>>>> Obviously the programs presented here have to be of a type that >>>>> don't >>>>> require inputs while the program is running so that point is mot. >>>> >>>>> On Mar 22, 12:53 am, Eagle-Man <eagle-...@duetsoftware.net> wrote: >>>>>> Not to say that I don't also want input, but is it really that >>>>>> grave a >>>>>> limitation? For how many mathematical programs/functions do >>>>>> you not >>>>>> know all the information beforehand? How many of the programs >>>>>> presented here would benefit or be drastically improved with the >>>>>> ability to input in the middle of the program/function. >>>> >>>>>> Again, I'd love to see some input for non-mathematical reasons, >>>>>> but I >>>>>> wouldn't be mad at TI for not including it. >>>> >>>>>> You know what I would like to see? Classes. >>>> >>>>>> --Eric F. >>>> >>>>>> --- Original Message --- >>>> >>>>>>> Nelson said: "also the input of a program on TI-Nspire must be >>>>>>> given >>>> >>>> ... >>>> >>>> read more »- Hide quoted text - >>>> >>>> - Show quoted text - >>>> >>> >> >>> >> > > > > > > ----~--~----~------------~-------~--~----~ > To post to this group, send email to tins...@googlegroups.com
While certainly not a program, the file I have attached is what I am showing my students to help them understand (hopefully) Type I error, Type II error, and Power. It is a first run, so I only built it to work if the specific alternative is greater than mu_naught.
You can change the settings on the sliders to be in a range specific to the problem you are working. At this time, also type in the value for each variable in each slider. This is enough to see the new calculation of Type II Error and Power. However, if you want to see the corresponding picture, change the Window Settings on the graph so the x-values match a decent range for the mu values (naught and specific alternative) in your problem.
Enjoy, but please offer suggestions to make it better...
Kara
----- Original Message -----
From: "Nelson Sousa" <nso...@gmail.com>
To: tins...@googlegroups.com