Skip to content

Tutorial 10 issue #5

@NickEfthymiou

Description

@NickEfthymiou

In the Jupyter workbook, the definition

def F(v, alpha, x2):
    "Forward physics model"
    return -(g/2)*((x2 / v * alpha.cos())**2) + (x2*(alpha.sin()/alpha.cos()))

is wrong. It should be (parentheses around v*cos(α) added):

def F(v, alpha, x2) -> Value:
    """
    Forward physics model
    """
    return -(g/2)*((x2 / (v * alpha.cos()))**2) + (x2*(alpha.sin()/alpha.cos()))

As is, the solver finds physically impossible solutions to the trajectory problem. The minimum required velocity to get to y2 is about 4.342 m/s.

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