Jump to content



Photo
- - - - -

Function Memory In Programs


  • Please log in to reply
6 replies to this topic

#1 AzraelUK

AzraelUK

    Newbie

  • Members
  • Pip
  • 1 posts

  • Calculators:
    fx9750

Posted 27 April 2009 - 10:20 AM

I've written a short program to plot implicitly defined functions -- all you do is store a function that uses the X and Y variables to calculate whether the point should be black (Z=1) or white (Z=0). Unfortunately I'm having a bit of trouble using the function memory. I'd assume that you just insert f1 into the program, but that gives a syntax error.

Is it possible to use function memory in a program? If so, how?

#2 3298

3298

    Casio Addict

  • Members
  • PipPipPip
  • 79 posts
  • Gender:Male
  • Location:Germany

  • Calculators:
    fx-9750G Plus
    Algebra FX 2.0 (ROM 1.03,broken)
    HP 50G

Posted 27 April 2009 - 11:22 AM

How do you want to use the fmem? Do you write a function like "AX+B" into it for calculating it several times with different values? This should work.
But if you store the program in the fmem and you want to execute it, the command f1 will give a syntax error. To execute the program, create a new one in the program menu and recall the fmem in it (this writes your code to the new one) and execute the new program.
Or do you want to do something different with the fmem?

#3 Guest_Guest_AzraelUK_*_*

Guest_Guest_AzraelUK_*_*
  • Guests

Posted 27 April 2009 - 01:06 PM

I guess that'll have to do. Out of interest, what are the f1 to f6 commands actually use for? Using them in any situation seems to give a syntax error.

Many thanks.

#4 3298

3298

    Casio Addict

  • Members
  • PipPipPip
  • 79 posts
  • Gender:Male
  • Location:Germany

  • Calculators:
    fx-9750G Plus
    Algebra FX 2.0 (ROM 1.03,broken)
    HP 50G

Posted 27 April 2009 - 03:11 PM

They are slots to save formulas, as I have written in my previous post. You can save something like "AX+B" to it and calculate this simply by typing f1 (if you saved it in the first slot). This can be useful if you want to calculate long formulas with different values. It is also possible to write "f1" to Y1 and then draw the graph (I think this is what these commands are designed for). On some calculators it is possible to do for example "AX+B"->f1, but not on fx-9750G Plus (maybe on fx-9750GA Plus, I don't know that calculator). The Algebra FX 2.0 Plus is able to do that, even ?->f1 is no syntax error. :P But don't use commands that can't be typed in Graph Mode, or you'll get a syntax error (I tried "Mat A[1,1]", Mat A was a 4*3 matrix -> syntax error).

#5 Guest_Guest_AzraelUK_*_*

Guest_Guest_AzraelUK_*_*
  • Guests

Posted 01 May 2009 - 10:15 AM

That's the thing -- I can RCL f1 and run the formula and it will work fine. But if I just enter f1 then I get a syntax error.

I think that the Graph Mode point might be what's causing it. I had a basic If clause in the function, so I'm guessing that you can't do that in graphs.

Thanks for the help.

#6 3298

3298

    Casio Addict

  • Members
  • PipPipPip
  • 79 posts
  • Gender:Male
  • Location:Germany

  • Calculators:
    fx-9750G Plus
    Algebra FX 2.0 (ROM 1.03,broken)
    HP 50G

Posted 05 May 2009 - 09:45 AM

Conditions can be used, but "If" or "=>" isn't allowed. Example for a condition:
[codebox]...+n(c=1)[/codebox]
where n is only added if c equals 1. Instead of "=" you can use the other conditional commands, like "<" or ">". These commands can't be typed in Graph Mode, but it works. Try it!

#7 Deathblake

Deathblake

    Newbie

  • Members
  • Pip
  • 4 posts

  • Calculators:
    Casio fx-9750G PLUS

Posted 09 May 2009 - 03:00 AM

That's the thing -- I can RCL f1 and run the formula and it will work fine. But if I just enter f1 then I get a syntax error.

I think that the Graph Mode point might be what's causing it. I had a basic If clause in the function, so I'm guessing that you can't do that in graphs.

Thanks for the help.


Think of f1 - f6 as your clipboard
You'd be best to copy what was on your clipboard than to point your program to it, as the clipboard is likely to change




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users