[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] variable value changes
From: |
grischka |
Subject: |
Re: [Tinycc-devel] variable value changes |
Date: |
Tue, 29 Nov 2011 13:37:49 +0100 |
User-agent: |
Thunderbird 2.0.0.24 (Windows/20100228) |
Xianwen Chen wrote:
Hi,
Please have a look at the attached c code -- I'm writing a function to
solve polynomial problems. The issue is that variable b's value changes
when the function polynomial was called for the first time.
I'm using version 0.9.25 windows binary from the website.
"tcc -run WTP_computation_test.c" here produces the text
below. What is wrong with it?
--- grischka
beta1 = -1.881387,
beta2 = 0.071824,
beta3 = 0.309415 (0.309415),
beta4 = 0.707721 (0.707721),
beta5 = 0.693304 (0.693304)
{a, b, c} = {0.071824, -0.732196, 0.309415}
bSqrMns4ac = 0.447216
{x1, x2} = {0.441726, 9.752514}
WTP(MSC) = 0.441726, 9.752514
{a, b, c} = {0.071824, -0.732196, 0.707721}
bSqrMns4ac = 0.332784
{x1, x2} = {1.081257, 9.112983}
WTP(AB on cod) = 1.081257, 9.112983
{a, b, c} = {0.071824, -0.732196, 0.693304}
bSqrMns4ac = 0.336926
{x1, x2} = {1.056343, 9.137897}
WTP(AB on salmon) = 1.056343, 9.137897
-->(0)