Author Topic: Grapher  (Read 8751 times)

0 Members and 1 Guest are viewing this topic.

Offline thydowulays

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 184
  • Rating: +12/-1
  • Don't gimme dat lip
    • View Profile
    • Thy Gaming Forum
Re: Grapher
« Reply #30 on: December 18, 2011, 08:39:04 pm »
I did indeed. Hmm.... I tried -Ans( and everything to get a negative number.......... I'm really trying to avoid writing the subroutine to do it for me..... there must be an easier way....
Current Projects:
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus




Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Grapher
« Reply #31 on: December 18, 2011, 08:41:02 pm »
As far as Axe is concerned, 65535=-1 ;) The obvious solution is to test if G is less than 0, and, if so, display a negative sign and then -G.

you try this? It doesn't sound to hard
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Grapher
« Reply #32 on: December 18, 2011, 08:43:38 pm »
I even wrote a routine that will do that (for the homescreen, but you can adapt it) as a response in the feature requests topic, but others had already posted. For reference, it would go something like this:
Lbl DSN
If r1<<0
Disp "-
End
Disp r1➤Dec
Return

Then you'd just replace "Disp X➤Dec" with "DSN(X)"
Something I'd like to reiterate: There is absolutely no difference between, say, 65535 and -1. Which way it is interpreted depends on the routine acting on it (for example, < vs <<)
« Last Edit: December 18, 2011, 08:44:10 pm by calcdude84se »
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Grapher
« Reply #33 on: December 18, 2011, 08:46:41 pm »
I thought I remembered someone say that <<0 will only be true for 0. I guess i must be wrong :P.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Grapher
« Reply #34 on: December 18, 2011, 08:52:17 pm »
More likely just misremembering. The closest statement to that that would be true is that X≤0 is only true if X is 0. :)
« Last Edit: December 18, 2011, 08:52:30 pm by calcdude84se »
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline thydowulays

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 184
  • Rating: +12/-1
  • Don't gimme dat lip
    • View Profile
    • Thy Gaming Forum
Re: Grapher
« Reply #35 on: December 18, 2011, 09:53:38 pm »
Thanks guys. @saintrunner Yes I did try that...... @calcdude84se Thanks so much, that drastically sizes down the subroutine I was writing.
Current Projects:
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus




Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Grapher
« Reply #36 on: December 18, 2011, 10:06:29 pm »
Glad to hear it,  can't wait to see this when it's done
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline thydowulays

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 184
  • Rating: +12/-1
  • Don't gimme dat lip
    • View Profile
    • Thy Gaming Forum
Re: Grapher
« Reply #37 on: December 18, 2011, 10:07:39 pm »
Yeah once I get this coordinate system in, I may do a DoorsCS style Menu GUI on the bottom that comes with several geometric/algebraic functions...

EDIT: RAGE RAGE RAGE lol. It still doesn't work. fml. ACTUALLY WAIT.... atm, I will be able to add slopes and slope intercept form equations to the program because they don't require coordinates.... w00t.
« Last Edit: December 18, 2011, 10:14:10 pm by thydowulays »
Current Projects:
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus




Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Grapher
« Reply #38 on: December 18, 2011, 10:09:41 pm »
sounds cool :) if you need help with anything else just post!
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline thydowulays

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 184
  • Rating: +12/-1
  • Don't gimme dat lip
    • View Profile
    • Thy Gaming Forum
Re: Grapher
« Reply #39 on: December 18, 2011, 10:17:45 pm »
Currently adding slope form and slope intercept.... I will make it so that when you press MODE, it will display a box of everything about your line... does anyone know how to use different programs and skip around between the programs like in BASIC? Oh wait, subroutine. I got it now :)
Current Projects:
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus




Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Grapher
« Reply #40 on: December 19, 2011, 01:51:33 am »
at first I thought this was some program that did real graphing like with formulas. That would be cool. This looks great too, tho.
I'm not a nerd but I pretend:

Offline thydowulays

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 184
  • Rating: +12/-1
  • Don't gimme dat lip
    • View Profile
    • Thy Gaming Forum
Re: Grapher
« Reply #41 on: December 19, 2011, 12:44:21 pm »
Thanks, I was thinking I would take a new approach to graphing..... people would get a better visual if they could draw the line themselves than punching in numbers...
Current Projects:
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus