##### Calculator 2.0

After many hours of work its finished!!!!

it can do:

Square root

Vector length

Calculator(+-*/)

Vectors

Degrees

Line slopes

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!

@XanthusPettitt I would recommend just experimenting and researching. You can use my code to base yours off of. But if you just want to use mine thats fine, just link to here if you do! Have fun!

@James193 ok james becasuse the formula sheet im using is no help so thank you for explaining

@XanthusPettitt no worries, happy to help, youtube is the best place to go, https://www.youtube.com/watch?v=8d9v6UEIDqM this is a good video explaing it :)

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:

It shows this:

To achieve this you can replace:

with this:

@Codemonkey51

Thank you very much!!!

This is much better now !!!

Your welcome @James193