- Yardy Sardley ( @yardy_sardley@lemmy.ca ) English53•5 months ago
Did nobody else’s CS department require a bunch of linear algebra courses? A vector is an element of vector space.
- baseless_discourse ( @baseless_discourse@mander.xyz ) English10•5 months ago
Sets are just objects in the category of Set.
- sexy_peach ( @sexy_peach@beehaw.org ) English5•5 months ago
We do and we know this. Maybe programmers would give that answer
- sanosuke001 ( @sanosuke001@lemmynsfw.com ) English39•5 months ago
What do you mean? A vector is a direction and magnitude!
- deaf_fish ( @deaf_fish@lemm.ee ) English14•5 months ago
Maybe they mean std::vector in C++?
- SorryQuick ( @SorryQuick@lemmy.ca ) English1•5 months ago
You can also define a vector by the equivalent “sides of the right triangle”. In 2D, the x,y coordinates. In computer science, vectors are n-tuples, so they represent a math/physics vector but in n-dimensions.
- cerement ( @cerement@slrpnk.net ) English18•5 months ago
you just need to
car
andcdr
yourcons
cell … - 🇦🇺𝕄𝕦𝕟𝕥𝕖𝕕𝕔𝕣𝕠𝕔𝕕𝕚𝕝𝕖 ( @muntedcrocodile@lemm.ee ) English16•5 months ago
Well mathematically isn’t it an n by 1 matrix.
- onlinepersona ( @onlinepersona@programming.dev ) English10•5 months ago
It’s an array.
First time I heard of vectors in comp-sci was in C++. The naming still doesn’t make sense to me.
- 01101000_01101001 ( @01101000_01101001@mander.xyz ) English0•5 months ago
- onlinepersona ( @onlinepersona@programming.dev ) English0•5 months ago
- unalivejoy ( @joyjoy@lemm.ee ) English6•5 months ago
I asked my math friend. He said a vector is magnitude plus velocity.
- Gnome Kat ( @GnomeKat@lemmy.blahaj.zone ) English27•5 months ago
It should be magnitude plus orientation, not velocity. Velocity itself is a vector quantity
- Kaboom ( @Kaboom@reddthat.com ) English6•5 months ago
A vector is a list of numbers, at its most basic. You can add a lot of extra functionality to it, but at its core, its just a list.