PicBasic Formula

Started by Scott Lingerfelt October 1, 2003


Can someone tell me or give me an example on how to implement the following
formula. My problem is the negative number!

a = -20
b = 32
x = Value

y=a+bx

Thanks in advance, Scott ---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.521 / Virus Database: 319 - Release Date: 9/23/2003



Scott,

It is as easy as changing the formula to

y=bx-a

Assuming that x is never zero the above works.

a= -20
b2
x=5

b*x = 160

y0+ (-20) 0

y0 - 20 = 140

Colin

On Wed, 1 Oct 2003 00:39:26 -0400, Scott Lingerfelt wrote:
:: Can someone tell me or give me an example on how to implement the
::following
::formula. My problem is the negative number!
::
:: a = -20
:: b = 32
:: x = Value
::
:: y=a+bx
::
:: Thanks in advance, Sco
--
cdb, on 01.10.2003

I have always been a few Dendrites short of an Axon and believe me it
shows.

Light travels faster than sound. That's why some people appear bright
until they speak! tt



On Wednesday 01 Oct 2003 5:39 am, Scott Lingerfelt wrote:
> Can someone tell me or give me an example on how to implement the following
> formula. My problem is the negative number!
>
> a = -20
> b = 32
> x = Value
>
> y=a+bx
>

Substituting for a and b gives

y = -20 + 32x

Rearranging gives

y = 32b - 20

So multiply b by 32 then subtract 20 from the result.

Ian