Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ShortsOnFire79

Pages: [1]
1
TI-BASIC / 83+ to nspire nx rewrite fail
« on: March 26, 2012, 12:07:44 am »
Hey,

So I'm in the process of rewriting some of my more useful programs from my TI-83 plus onto my TI-nspire cx cas.
I've written myself a program that will ask for 4 variables, and depending on which variable is set as the one to solve for, it will perform a certain equation.  By making my variables equal each other (ex: p=p) then that tells my code to solve for that variable.

Heres the code thats on my 83, it works just fine.
Spoiler For Spoiler:
:Disp "pv=(0.08206)nt"
:Input "enter p:atm=",p
:Input "enter v:l=",v
:Input "enter n=",n
:Input "enter t:k=",t
:If p=p:then
:Disp (0.08206nt)/v
:If v=v:then
:Disp (0.08206nt)/p
:If n=n:then
:Disp (pv)/(0.08206t0
:If t=t:then
:Disp (pv)/(n0.08206)

I'm basically writing the same exact code, except without the 'input' command, since it isn't in the catalog function on the cas, but that is what the 'define' command is for.  Here is the code I have on my cas, it gives me syntax errors when I try to 'check it', and when I run it, it says I have too many arguments.  I also tried writing the code with instead of 'func', using 'prgm', which didn't change anything.  I attempted to have the code recognize the variable '?' which would symbolize which variable to solve for, but it would not recognize it either.
Spoiler For Spoiler:
Define gaslaw(p,v,n,t)=
func
If p=p, then disp 0.08206nt/v
If v=v, then disp 0.08206nt/p
If n=n, then disp pv/0.08206t
If t=t, then disp pv/0.08206n
endfunc

I know that my knowledge of coding is quite diminutive, which is why I'm here, to learn.  So feel free to poke and make fun of my codes and how sloppy it is and whatnot.  I'm sure there are numerous ways to shorten my code, but I only know the very basics at the moment.  Any bits of knowledge you could offer me would be greatly received, I am here to learn!

Thank you for your time. :)

2
Introduce Yourself! / Shortsonfire79 joins the club!
« on: March 25, 2012, 12:56:17 pm »
Hey Omnimaga,
Some of you (though I doubt it)may recognize my name from youtube, deviantart, minecraft, warhammer 40k, or...some other web-based things.

I stumbled upon your site while looking for some programming answers via Google, hopefully you'll all be able to help me out a tiny bit. :)  I recently (got it yesterday) took the leap of upgrading my graphing calculator from the TI-83 Plus to the TI-nspire CX CAS. :D  I'm not too big on programming, but I would like to figure out how to get the few programs I've written on my 83 to my nspire.  I've written programs that allow me to plug in numbers for variables to solve things like the ideal gaslaw, the quadratic formula, etc.  How would I go about transferring/rewriting them on my nspire?  I can't find anything like the 'prgm' button on the 83 on it. 
I just installed Ndless and a couple of gba games, thanks to a youtube video that I think pulled some info off your website. :)
I do not know C+, or Lua (whatever that is), or Ndless, or anything at all. :p 

If you could help me out, that'd be fantastic!  Thanks very much!

Pages: [1]