BASIC Programs on HP 50G
03-11-2014, 03:29 PM (This post was last modified: 03-11-2014 03:33 PM by churichuro.)
Post: #28
 churichuro Junior Member Posts: 28 Joined: Feb 2014
RE: BASIC Programs on HP 50G
examp #1: area of circle, here use the stack!

D=POP
A=D*D*PI/4
PRINT "AREA=";A
PUSH A
END

examp #2: from C bible the program Celsius

lower=0
upper=300
step1=20
fahr=lower
while fahr<=upper
celsius=(5.0/9.0)*(fahr-32.0)
print fahr,celsius
fahr=fahr+step1
Wend
end

examp #3: Int. SIMPSON ver 1.
print "Integral por el metodo SIMPSON"
input "lim. inf=",a
input "lim. sup=",b
input "# intervalos=",c
h=(b-a)/c
x=a
gosub 1000
i=f
for m=1 to c/2
x=x+h
gosub 1000
i=i+f*4
x=x+h
gosub 1000
i=i+f*2
next
x=b
gosub 1000
i=i-f
print "i=";i*h/3
end
1000 f=x^3+x^2-x-1
return
end

examp #4: use DATA and READ instructions

print "Ejemplo de datas"
read x,y,z$print "X=";x print "Y=";y print "Z=";z$
data 10, 25.4, "hola!!!"
end

examp #5: here the user can write an equation for X and is evaluate
INPUT "X = ",X
INPUT "EQ=",E$PRINT VAL(E$)
END

examp #6: int. SIMPSON ver 2.

print "Integral por el metodo SIMPSON"
print "Ecuacion en funcion de x"
input "ejemplo: x^3+x^2-x-1 :",e$input "limite inf=",a input "limite sup=",b input "# intervalos=",c print "resolviendo para : f=";e$
h=(b-a)/c
x=a
f=val(e$) i=f for m=1 to c/2 x=x+h f=val(e$)
i=i+f*4
x=x+h
f=val(e$) i=i+f*2 next x=b f=val(e$)
i=i-f
print "i=";i*h/3
end
 « Next Oldest | Next Newest »

 Messages In This Thread BASIC Programs on HP 50G - Alvaro - 03-06-2014, 12:33 PM RE: BASIC Programs on HP 50G - robert rozee - 03-08-2014, 11:30 PM RE: BASIC Programs on HP 50G - Namir - 03-08-2014, 11:59 PM RE: BASIC Programs on HP 50G - RMollov - 03-09-2014, 04:17 AM RE: BASIC Programs on HP 50G - RMollov - 03-09-2014, 04:04 AM RE: BASIC Programs on HP 50G - HP67 - 03-09-2014, 10:31 AM RE: BASIC Programs on HP 50G - r. pienne - 03-09-2014, 11:33 AM RE: BASIC Programs on HP 50G - HP67 - 03-09-2014, 11:40 AM RE: BASIC Programs on HP 50G - r. pienne - 03-09-2014, 11:57 AM RE: BASIC Programs on HP 50G - HP67 - 03-09-2014, 12:59 PM RE: BASIC Programs on HP 50G - r. pienne - 03-09-2014, 01:09 PM RE: BASIC Programs on HP 50G - HP67 - 03-09-2014, 01:19 PM RE: BASIC Programs on HP 50G - Thomas Klemm - 03-09-2014, 02:00 PM RE: BASIC Programs on HP 50G - Alvaro - 03-09-2014, 11:43 AM RE: BASIC Programs on HP 50G - Didier Lachieze - 03-09-2014, 12:11 PM RE: BASIC Programs on HP 50G - HP67 - 03-09-2014, 11:45 AM RE: BASIC Programs on HP 50G - Wes Loewer - 03-26-2014, 06:00 PM RE: BASIC Programs on HP 50G - HP67 - 03-26-2014, 06:13 PM RE: BASIC Programs on HP 50G - Wes Loewer - 03-26-2014, 07:54 PM RE: BASIC Programs on HP 50G - Alvaro - 03-26-2014, 07:56 PM RE: BASIC Programs on HP 50G - Namir - 03-09-2014, 01:59 PM RE: BASIC Programs on HP 50G - HP67 - 03-09-2014, 03:00 PM RE: BASIC Programs on HP 50G - Manolo Sobrino - 03-09-2014, 05:10 PM RE: BASIC Programs on HP 50G - Alvaro - 03-09-2014, 07:02 PM RE: BASIC Programs on HP 50G - HP67 - 03-10-2014, 07:35 AM RE: BASIC Programs on HP 50G - churichuro - 03-09-2014, 07:20 PM RE: BASIC Programs on HP 50G - Joe Horn - 03-11-2014, 04:18 AM RE: BASIC Programs on HP 50G - Massimo Gnerucci - 03-11-2014, 07:21 AM RE: BASIC Programs on HP 50G - churichuro - 03-11-2014, 03:17 PM RE: BASIC Programs on HP 50G - Howard Owen - 03-19-2014, 06:16 PM RE: BASIC Programs on HP 50G - RMollov - 03-20-2014, 07:57 AM RE: BASIC Programs on HP 50G - Alvaro - 04-20-2014, 12:39 PM RE: BASIC Programs on HP 50G - churichuro - 04-21-2014, 01:02 AM RE: BASIC Programs on HP 50G - Alvaro - 04-21-2014, 09:39 AM RE: BASIC Programs on HP 50G - churichuro - 04-21-2014, 09:27 PM RE: BASIC Programs on HP 50G - David Hayden - 03-11-2014, 03:05 AM RE: BASIC Programs on HP 50G - churichuro - 03-11-2014, 03:20 PM RE: BASIC Programs on HP 50G - churichuro - 03-11-2014 03:29 PM RE: BASIC Programs on HP 50G - churichuro - 03-11-2014, 03:46 PM RE: BASIC Programs on HP 50G - Alvaro - 03-12-2014, 10:00 PM RE: BASIC Programs on HP 50G - churichuro - 03-13-2014, 08:07 PM RE: BASIC Programs on HP 50G - Manolo Sobrino - 03-13-2014, 09:21 PM RE: BASIC Programs on HP 50G - churichuro - 03-14-2014, 02:28 PM RE: BASIC Programs on HP 50G - Alvaro - 03-14-2014, 12:08 PM RE: BASIC Programs on HP 50G - dizzy - 03-14-2014, 01:44 PM RE: BASIC Programs on HP 50G - Alvaro - 03-15-2014, 07:23 PM RE: BASIC Programs on HP 50G - Alvaro - 03-16-2014, 02:45 PM RE: BASIC Programs on HP 50G - churichuro - 03-14-2014, 02:46 PM RE: BASIC Programs on HP 50G - dfnr2 - 03-19-2014, 03:55 PM RE: BASIC Programs on HP 50G - churichuro - 03-23-2014, 01:08 AM RE: BASIC Programs on HP 50G - Alvaro - 03-23-2014, 09:18 PM RE: BASIC Programs on HP 50G - Shawn Gibson - 03-26-2014, 02:59 PM RE: BASIC Programs on HP 50G - HP67 - 03-26-2014, 08:09 PM RE: BASIC Programs on HP 50G - Alvaro - 03-26-2014, 08:46 PM RE: BASIC Programs on HP 50G - RMollov - 03-27-2014, 03:54 AM RE: BASIC Programs on HP 50G - Alvaro - 03-27-2014, 08:05 AM RE: BASIC Programs on HP 50G - RMollov - 03-27-2014, 09:02 AM RE: BASIC Programs on HP 50G - Han - 03-27-2014, 09:29 PM RE: BASIC Programs on HP 50G - Wes Loewer - 03-27-2014, 03:41 PM RE: BASIC Programs on HP 50G - Alvaro - 03-27-2014, 06:24 PM RE: BASIC Programs on HP 50G - RMollov - 03-28-2014, 02:43 AM RE: BASIC Programs on HP 50G - Howard Owen - 03-29-2014, 03:32 AM

User(s) browsing this thread: 1 Guest(s)