After many hours of work its finished!!!!
it can do:
Cool, I tried the calculator part of this project before, and I have one suggestion, have it make it an in line so instead of this:
Number 1 --> 1 Sign --> + Number --> 1 You want to calculate 1+1. The result is 2.
It shows this:
Equation --> 1 + 1 You want to calculate 1+1. The result is 2.
To achieve this you can replace:
num1 = int(input("Number 1 --> ")) sign = input("Sign --> ") num2 = int(input("Last number --> "))
equation = input("equation --> ") equation = equation.split(" ") num1 = equation sign = equation num2 = equation
hey im trying to code a calculator for vectors, how did you figure out how to calculate the vectors
@XanthusPettitt I started by doing a bitof research, then making a test repl I just tried doing different ways to calculate vectos and vector lenghts. First it takes the coordinates e.g (5,6) which is done in this line and then outputing it.
x, y = input("x and y coordinate: ").split()
print("Your vector is (%s, %s)" % (x, y))
Then the next line
length = sqrt(int(x)2) + sqrt(int(y)2)
is calculating the length by adding them together which is the lenght of the vector, for 5 6 it would be 11.
Sorry if its not much help as it was a year ago and im a bit rusty on these sort of things now and I dont code as much cause life lol!