Python Physics: Building a Linear Regression Function in VPython

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 6

  • @fizixx
    @fizixx 26 днів тому

    Thanks for the code, always. I like making projects, like this, that I can grab and include in another program!

  • @ajejebrazor4936
    @ajejebrazor4936 28 днів тому +1

    Thank you as always!
    In classes I need to figure out how to take into account the errors in the dataset. Could you please show a way to include errors in the linear regression? How do I calculate the error in B and A?

  • @padraiggluck2980
    @padraiggluck2980 28 днів тому +1

    Dr. Allain, you forgot to post the code.

    • @DotPhysics
      @DotPhysics  28 днів тому

      It's in the description below - this is it also trinket.io/glowscript/3383accc2b4f

    • @padraiggluck2980
      @padraiggluck2980 28 днів тому +1

      @ Dr., there is no code, there is only a single character 1.

    • @fizixx
      @fizixx 26 днів тому

      @@DotPhysics Ahhhh, yes he's right. This is what's in the code:
      "Web VPython 3.2
      print(1)"