what am i doing wrong here.

new topic     » topic index » view thread      » older message » newer message

--=======AVGMAIL-3FDEA0B2627F=======

------=_NextPart_000_001C_01C3C3F6.D3FC3C00

The first example works, the second one does'nt
x = 86.0001776 - d -- x = 0.0001776
Ex 1:
 atom c,i,d,x
d = 86
c = root(d,3) -- c = 4.414005266 -- (My function)
i = power(c,3) -- i = 86.0001776
x = 86.0001776 - 86 -- x = 0.0001776
print(1,x)


Ex 2:
 atom c,i,d,x
d = 86
c = root(d,3) -- c = 4.414005266
i = power(c,3) -- i = 86.0001776
x = i - d -------------- x = 1.776461434e-005 -- why?
print(1,x)

I'm trying to do this so I can get the root of x 
and subtract it from c so that 
c powerd again will equal ~exactly 86.

Is this a binary bit error thats grown?

This is all my root routine needs to do to accomadate for all
root factors since 
i = root(86,9) -- i = around 1.478xxxxx
x = power(i,9) -- 
x = arround 33.69xxxxx (i needs to have +0.163)
so that when powered it equals 86.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.551 / Virus Database: 343 - Release Date: 11/12/03
------=_NextPart_000_001C_01C3C3F6.D3FC3C00
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>The first example works, the second one 
does'nt</FONT></DIV>
<DIV><FONT face=Arial size=2>x&nbsp;= 86.0001776 - d -- x = 
0.0001776</FONT></DIV>
<DIV><FONT face=Arial size=2>Ex 1:</FONT></DIV>
<DIV>&nbsp;<FONT face=Arial size=2>atom c,i,d,x<BR>d = 86<BR>c&nbsp;= root(d,3) 
-- c = 4.414005266 -- (My function)<BR>i = power(c,3) -- i = 86.0001776<BR>x 
=&nbsp;86.0001776 - 86 -- x = 0.0001776<BR>print(1,x)<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Ex 2:</FONT></DIV>
<DIV>&nbsp;<FONT face=Arial size=2>atom c,i,d,x<BR>d = 86<BR>c&nbsp;= root(d,3) 
-- c = 4.414005266<BR>i = power(c,3) -- i = 86.0001776<BR>x = i - d 
-------------- x = 1.776461434e-005 -- why?<BR>print(1,x)<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I'm trying to do this so I can get the root of x 
</FONT></DIV>
<DIV><FONT face=Arial size=2>and subtract it from c so that </FONT></DIV>
<DIV><FONT face=Arial size=2>c&nbsp;powerd again will equal ~exactly 
86.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Is this a binary bit error thats 
grown?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This is all my root routine needs to do to 
accomadate for all</FONT></DIV>
<DIV><FONT face=Arial size=2>root factors since </FONT></DIV>
<DIV><FONT face=Arial size=2>i = root(86,9) --&nbsp;i&nbsp;= around 
1.478xxxxx</FONT></DIV>
<DIV><FONT face=Arial size=2>x = power(i,9) -- 
<DIV><FONT face=Arial size=2>x = arround 33.69xxxxx (i needs to have 
+0.163)</FONT></FONT></DIV></DIV>
<DIV><FONT face=Arial size=2>so that when powered it equals 86.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><BR>---<BR>Outgoing mail is certified Virus 
Free.<BR>Checked by AVG anti-virus system (<A 
href="http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: 6.0.551 /

------=_NextPart_000_001C_01C3C3F6.D3FC3C00--
--=======AVGMAIL-3FDEA0B2627F=======
Content-Type: text/plain; x-avg=cert; charset=iso-8859-2
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Description: "AVG certification"

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.551 / Virus Database: 343 - Release Date: 11/12/03

--=======AVGMAIL-3FDEA0B2627F=======--

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu