Beispiel #1
0
double
Table5::lfi(const double iv1, const double iv2, const double iv3, FStorage* const f) const
{
    if (!valid) throw new ExpInvalidTable(); // Not valid - throw an exception

    const double* w_data = getWData();
    if (f != nullptr) {
        TableStorage* s = dynamic_cast<TableStorage*>(f);
        if (s == nullptr) throw new ExpInvalidFStorage();

        return lfi_5D( iv1, iv2, iv3, w_data[0], vtable[0], getXData(), getNumXPoints(),
                       getYData(), getNumYPoints(), getZData(),
                       getNumZPoints(), getWData(), getNumWPoints(),
                       getVData(), getNumVPoints(),
                       getDataTable(), isExtrapolationEnabled(),
                       &s->xbp, &s->ybp, &s->zbp, &s->wbp, &s->vbp );
    }
    else {
        return lfi_5D( iv1, iv2, iv3, w_data[0], vtable[0], getXData(), getNumXPoints(),
                       getYData(), getNumYPoints(), getZData(),
                       getNumZPoints(), getWData(), getNumWPoints(),
                       getVData(), getNumVPoints(),
                       getDataTable(), isExtrapolationEnabled());
    }
}
Beispiel #2
0
double
Table2::lfi(const double iv1, const double iv2, FStorage* const f) const
{
    if (!valid) throw new ExpInvalidTable(); // Not valid - throw an exception

    if (f != nullptr) {
        TableStorage* s = dynamic_cast<TableStorage*>(f);
        if (s == nullptr) throw new ExpInvalidFStorage();

        return lfi_2D( iv1, iv2, getXData(), getNumXPoints(), getYData(),
                       getNumYPoints(), getDataTable(),
                       isExtrapolationEnabled(),
                       &s->xbp, &s->ybp );
    }
    else {
        return lfi_2D( iv1, iv2, getXData(), getNumXPoints(), getYData(),
                       getNumYPoints(), getDataTable(),
                       isExtrapolationEnabled() );
    }
}
/*main written by Josh Cristol and Cody Horton*/
int main(void){
	PLL_Init();
	Output_Init();
	Edge_Init();
	while(1){
		while(!Switch_Pressed()){wait(1);}
		wait(0);
		testBinary();
		while(!Switch_Pressed()){wait(1);}
		wait(0);
		testDec(); 
		while(!Switch_Pressed()){wait(1);}
		wait(0);
		testGraph();
		XYplotInit("Graph", getXMin(), getXMax(), getYMin(), getYMax());
		int32_t* xBuff = getXData();
		int32_t* yBuff = getYData();
		XYplot(xBuff, yBuff, getLength());
	}
}