Learn Encapsulation by Building a Projectile Trajectory Calculator - Step 4 - Bugs

Tell us what’s happening:

Is there a problem of displaying mathmatical notations in the instruction? It’s full of “[Math Processing Error]” in red colour.

Your code so far

import math

GRAVITATIONAL_ACCELERATION = 9.81
PROJECTILE = "∙"
x_axis_tick = "T"
y_axis_tick = "⊣"

class Projectile:
    __slots__ = ('__speed', '__height', '__angle')

    def __init__(self, speed, height, angle):
        self.__speed = speed
        self.__height = height
        self.__angle = math.radians(angle)
        

# User Editable Region

    

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Learn Encapsulation by Building a Projectile Trajectory Calculator - Step 4

Same problem happens in Step 6.

It works for me.

Make sure you are not blocking the MathJax script.

Maybe clear your cache as well and reload the page.

1 Like

Oh. It works after a reloading of the page. Thanks.