Jump to content



Photo
- - - - -

How To Draw Line, Circle Etc With Cp-400 Basic ( Programing )


  • Please log in to reply
2 replies to this topic

#1 Ata.H.D

Ata.H.D

    Newbie

  • Members
  • Pip
  • 17 posts
  • Gender:Male

  • Calculators:
    fx-cp300
    fx-cp400

Posted 31 July 2015 - 02:28 PM

hi

Drawing  Dotted, Filled, Etc. Circles, lines, ellipse....

( not use for-next )

:bow: :bow:


Edited by Ata.H.D, 31 July 2015 - 03:28 PM.


#2 pan.gejt

pan.gejt

    Casio Freak

  • Members
  • PipPipPipPip
  • 135 posts
  • Gender:Male
  • Location:CZ

  • Calculators:
    fx-880, fx-6300G, fx-9700GE, fx-9860G Slim, Classpad 330-A, TI-Nspire + keypad, TI-Nspire CAS, TI-Nspire CX CAS,TI-89 Titanium, HP-50g, SEC-101, fx-991ES PLUS, fx-991DE PLUS, fx-CP400, Canon X MARK I PRO, Citizen SRP-75,

Posted 03 August 2015 - 03:30 PM

Line as graph

ClrGraph
ViewWindow -4,4,0.5,-4,4,0.5 (this command is optional, Xmin,Xmax,Xstep,Ymin,Ymax,Ystep)
"2×x+3"=>eq
DrawGraph
--------------------------------------
Line as sketch

ClrGraph
ViewWindow -4,4,0.5,-4,4,0.5
Line 0,3,1,5                                    (X1,Y1,X2,Y2)
--------------------------------------
Circle as graph

ClrGraph
ViewWindow -4,4,0.5,-4,4,0.5
"x²+y²=3"=>ConicsEq
DrawConics
--------------------------------------
Circle as sketch

ClearGraph
ViewWindow -5,5,1,-5,5,1
Circle 0,0,2                                  (X,Y,R)
--------------------------------------
Ellipse is available as graph only

ClrGraph
ViewWindow -15.4,15.4,2,-7.6,7.6,2
"(x-1)²/3²+(y-2)²/4²=1"=>ConicsE1
DrawConics
--------------------------------------
Dotted sin(x) with connected x/3

ClrGraph
ViewWindow -pi,pi,pi/5,-1.2,1.2,0.2
GraphType "y="
Define y1(x)=sin(x)
GTSelOn 1
PTDot 1 (you can try PTBrokenThck, PTThick, PTTHin)
SheetActive 1
DrawGraph
GraphType "y="
Define y2(x)=x/3
GTSelOn 2
PTNormal 2
DrawGraph
SheetActive 1
--------------------------------------
Filled, there is a command DrawShade, which shades area between 2 expressions

ClrGraph
ViewWindow -0.2,pi+0.2,0.2,-1.2,1.2,0.2
DrawShade 0,sin(x),0,pi

notice: if the area is blank, you must change the order of expressions
 


  • Ata.H.D likes this

#3 Ata.H.D

Ata.H.D

    Newbie

  • Members
  • Pip
  • 17 posts
  • Gender:Male

  • Calculators:
    fx-cp300
    fx-cp400

Posted 03 August 2015 - 04:05 PM

Line as graph

ClrGraph
ViewWindow -4,4,0.5,-4,4,0.5 (this command is optional, Xmin,Xmax,Xstep,Ymin,Ymax,Ystep)
"2×x+3"=>eq
DrawGraph
--------------------------------------
Line as sketch

ClrGraph
ViewWindow -4,4,0.5,-4,4,0.5
Line 0,3,1,5                                    (X1,Y1,X2,Y2)
--------------------------------------
Circle as graph

ClrGraph
ViewWindow -4,4,0.5,-4,4,0.5
"x²+y²=3"=>ConicsEq
DrawConics
--------------------------------------
Circle as sketch

ClearGraph
ViewWindow -5,5,1,-5,5,1
Circle 0,0,2                                  (X,Y,R)
--------------------------------------
Ellipse is available as graph only

ClrGraph
ViewWindow -15.4,15.4,2,-7.6,7.6,2
"(x-1)²/3²+(y-2)²/4²=1"=>ConicsE1
DrawConics
--------------------------------------
Dotted sin(x) with connected x/3

ClrGraph
ViewWindow -pi,pi,pi/5,-1.2,1.2,0.2
GraphType "y="
Define y1(x)=sin(x)
GTSelOn 1
PTDot 1 (you can try PTBrokenThck, PTThick, PTTHin)
SheetActive 1
DrawGraph
GraphType "y="
Define y2(x)=x/3
GTSelOn 2
PTNormal 2
DrawGraph
SheetActive 1
--------------------------------------
Filled, there is a command DrawShade, which shades area between 2 expressions

ClrGraph
ViewWindow -0.2,pi+0.2,0.2,-1.2,1.2,0.2
DrawShade 0,sin(x),0,pi

notice: if the area is blank, you must change the order of expressions
 

TNX , bt I means draw line , Line x1,y1,x2,y2,12,BF like as Qbasic !!!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users