Skip to content

Question about your slope intercept formula #9

@ForestRoots

Description

@ForestRoots

I'm curious why you are dividing by 3 on these 2 lines:

float slope = (7.0 - 4.0) / ((this->_neutralVoltage - 1500.0) / 3.0 - (this->_acidVoltage - 1500.0) / 3.0); // two point: (_neutralVoltage,7.0),(_acidVoltage,4.0)

float intercept = 7.0 - slope * (this->_neutralVoltage - 1500.0) / 3.0;

Shouldn't the slope simply be (y2-y1) / (x2-x1)?

I'm using a BlueLab rig to compare my results and having some fairly large discrepancies. My biggest problem is I cannot say for certain that my BlueLab is correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions