Loading ...
Sorry, an error occurred while loading the content.

f(x) for x>10 ???

Expand Messages
  • yiesyisyeno
    alo...i m new how can u use f(x) for x 10 ??? ...gives eror if x 10 thenx alexis ooo
    Message 1 of 4 , Nov 24, 2008
    • 0 Attachment
      alo...i m new
      how can u use f(x) for x>10 ???
      ...gives eror if x>10

      thenx
      alexis
      ooo
    • Bill Beasley
      ... Liberty Basic sees your f(x) as a numeric array. Arrays have to be specifically DIM-ensioned when the number of elements is greater than 10. Ex. DIM f(11)
      Message 2 of 4 , Nov 24, 2008
      • 0 Attachment
        --- In libertybasic@yahoogroups.com, "yiesyisyeno" <yiesyisyeno@...>
        wrote:
        >
        > alo...i m new
        > how can u use f(x) for x>10 ???
        > ...gives eror if x>10
        >
        > thenx
        > alexis
        > ooo
        >

        Liberty Basic sees your f(x) as a numeric array.
        Arrays have to be specifically DIM-ensioned when
        the number of elements is greater than 10.
        Ex. DIM f(11)
        f(11) = 2*11+1
        Print f(11)

        Now, if you are trying to use the "eff-of-x" math
        function then you'll have to define a function to
        Liberty Basic.

        Ex. Print f(11)
        wait
        function f(x)
        f = 2*x + 1
        end function

        Have fun.
      • Dave
        at the start of your program: DIM f(number) if you need an array of 1000, then you would use DIM f(1000) ... From: yiesyisyeno To: libertybasic@yahoogroups.com
        Message 3 of 4 , Nov 24, 2008
        • 0 Attachment
          at the start of your program:

          DIM f(number)

          if you need an array of 1000, then you would use DIM f(1000)



          ----- Original Message -----
          From: yiesyisyeno
          To: libertybasic@yahoogroups.com
          Sent: Monday, November 24, 2008 9:20 AM
          Subject: [libertybasic] f(x) for x>10 ???


          alo...i m new
          how can u use f(x) for x>10 ???
          ...gives eror if x>10

          thenx
          alexis
          ooo





          [Non-text portions of this message have been removed]
        • Sarah Louise Davis
          or, if you have lots of array then you could do someone like this x=10000 dim f(x), g(x), h(x) etc then you can change x without having to do too much editing
          Message 4 of 4 , Nov 24, 2008
          • 0 Attachment
            or, if you have lots of array then you could do someone like this

            x=10000
            dim f(x), g(x), h(x) etc

            then you can change x without having to do too much editing

            Sarah


            ----- Original Message -----
            From: Dave
            To: libertybasic@yahoogroups.com
            Sent: Monday, November 24, 2008 10:23 PM
            Subject: Re: [libertybasic] f(x) for x>10 ???


            at the start of your program:

            DIM f(number)

            if you need an array of 1000, then you would use DIM f(1000)

            ----- Original Message -----
            From: yiesyisyeno
            To: libertybasic@yahoogroups.com
            Sent: Monday, November 24, 2008 9:20 AM
            Subject: [libertybasic] f(x) for x>10 ???

            alo...i m new
            how can u use f(x) for x>10 ???
            ...gives eror if x>10

            thenx
            alexis
            ooo

            [Non-text portions of this message have been removed]





            [Non-text portions of this message have been removed]
          Your message has been successfully submitted and would be delivered to recipients shortly.