#Vectors

2025-06-27

When you teach Cartesian vectors, do you draw the basis vectors only at the origin or also at other points in the space? #ITeachPhysics #ITeachMath #Vectors

2025-06-18

Mathsy fedi, I have a question!

I have an arbitrarily sized cube of 3D space, and want to find the furthest possible distance an arbitrary number of points can be apart in it (and then average that and weight it by weights attached to the points and stuff but I can do all that hit).

This is presumably a very solved problem for low numbers (and I don't need more than low numbers), is there an easy enough formula or table I can use?

Boosts appreciated!

#Maths #Geometry #Vectors #Academia #Math

2025-06-15

Time for my regular moaning about #AI .
England math GCSE Higher paper 3... last question, about vectors.

I looked at it and came to a conclusion, but I'm not too certain since I'm a bit rubbish with vectors. I never been taught it formally, self learned and never practiced much.

So a colleague suggested a certain AI to solve it and the answer is k= 15/4. I used a different AI and the answer is k= 17/2 ... 3.75 vs 8.5 ... not even close!

#math #maths #gcseMaths #vectors

Complicated maths problem involving vectors and a trapezium. Apologies, I'm on the go and can't at the moment describe it in details. I will if anyone asks!
2025-06-07

Соединяем физику и лирику. Как я собрал рекомендательную систему для стихов с помощью Flask, sqlite-vec и Hugging Face

Для песен рекомендательные системы есть, для книг — есть, для фильмов — есть, для стихов — нет. Непорядочек 🤔 Используя Flask, Jinja2, Sentence-Transformers и sqlite-vec, собрал первый прототип рекомендательной системы для стихов. Для машины измерить в цифрах схожесть двух стихов — трудно. А для человека — в самый раз. Прикрутил форму оценки рекомендаций, собрал человеческий фидбек. В статье подробно рассказываю о деталях конструкции.

habr.com/ru/articles/916476/

#llm #flask #embeddings #python #nlp #backend #vectors #transformers #poetry #texts

📣🦟 The third call for data papers describing datasets on #vectors of #humandiseases is closing this week!

GBIF has collaborated with #TDR, and GigaScience for a special journal issue in GigaByte Journal focused on publishing new datasets that present biodiversity data for research on vectors of human diseases.

📌 Deadline: 6 June 2025

More info: 🔗gbif.link/Vector-Paper-Call

photograph of a mosquito
2025-05-23

Today's activity include #vectors #points and #math.

Once I crack this for my context case, I get to be very happy. It is old code Infound that I have been using for YEARS. It has worked this whole time until I tries pipes and content that was perfectly vertical. I had a slick way (then) of getting my number fast, but never considered the how I got it, and it was strictly bad math!! I had a div by zero issue since the X1Y1 and X2Y2 were equal, and I was using maths for a 2D situation.
What I literally need is X here, because it is the number I need to find distance from primary pipe end to place a branch node.
This has real world implications wherein we save a LOT of money at the shop by this process correcting broken branch nodes-- at the fabrication stage, this point is used to automate cuts for the taps on the pipe, and cut them out by plasma torch.

a graph paper sketch of a coordinat plane, and a lot of construction and lines finding a particular line segment distance.

#pic
#vectors and #art
#text and image concepts are converted to #vectors in “embedding space”

Michael Houmannmichaelhoumann@c.im
2025-04-26

#100DaysOfCode day 18:
I finished the chapter bout #Vectors and #VectorMath. And I am happy to be moving forward. Not fully up to "top speed" brain wise, but getting better each day. Sleeping helps a lot.
#NatureOfCode #P5JS #JavaScript #CreativeCode #GenerativeCode

ƧƿѦςɛ♏ѦਹѤʞspacemagick
2025-04-20

Some mathematical art:
&list=PLnQX-jgAF5pQS2GUFCsatSyZkSH7e8UM8&index=2

Karsten Schmidttoxi@mastodon.thi.ng
2025-04-16

#ReleaseWednesday — I just released a new version (v8.0.0) of thi.ng/vectors, an almost complete rewrite of the package with all of its ~900 vector operations. I've updated the Readme with a section of _potentially_ minor breaking changes, however I expect this to be a seamless upgrade for the vast majority of users...

I've recently written more about the reasons and implications of this update and I'll refer you to those posts instead of repeating them once more (see links below).

Just the top-level changes:

- Replaced dynamic code generation with higher-order templating to be usable with strict content security policies (when deployed online)
- New structure allows for vast majority of functions to have doc strings (and they do now)
- More consistent/less confusing naming for some operations
- Potentially improved tree-shaking and smaller project bundle sizes

Related to this update I've also refactored and fixed some bugs in other packages (e.g. color, geom, matrices). As a result both the color & matrix packages are now also free from dynamic codegen and therefore won't cause any problems with strict CSPs

Should you run into any issues regarding this update, please get in touch (also grateful for any other experience/impact reports... 🙏)

More info in these recent posts/threads:

- mastodon.thi.ng/@toxi/11429644
- mastodon.thi.ng/@toxi/11431965
- mastodon.thi.ng/@toxi/11433601

Happy coding!

#ThingUmbrella #Vectors #TypeScript #JavaScript #OpenSource

Karsten Schmidttoxi@mastodon.thi.ng
2025-04-14

To put the "large" package size a little more into perspective: I don't know of any other feature-comparable JS vector library which provides all of the following:

- Generic n-dimensional float, int, uint, boolean vectors
- Size optimized versions for 2D/3D/4D (all types)
- Multiple-dispatch wrappers (auto-delegating to available optimized versions)
- Memory-mapped vectors and optimized versions for various memory layouts (e.g. SOA/AOS)
- Optimized versions of many vector-scalar ops
- Optimized compound operations (like multiply-add etc.)
- Vector randomizations (several approaches)
- 99% of GLSL vector operations & conversions
- Vector versions of most of JS `Math` ops
- Vector interpolations (linear, bilinear, cubic, quadratic...)
- 10 different distance functions & metrics
- Swizzling & vector coercion/extension
- Dozens of additional graphics, statistics & ML-related operations

#ThingUmbrella #TypeScript #JavaScript #CodeGeneration #Vectors #OpenSource

Karsten Schmidttoxi@mastodon.thi.ng
2025-04-14

Just a quick #ThingUmbrella update to say that I've already replaced the thi.ng/vectors package on the develop branch and after LOTS of deep experimentation have decided NOT to split up the package. There will be a few (minor) breaking changes, mainly because of enforcing more consistent naming and more granularity in some source files (therefore possibly changed imports, though only if you use direct ones for individual functions...). All in all, I've managed to keep the impact on users to a bare minimum (likely unnoticeable for most), even though it's pretty much a complete rewrite of the entire package (with all its ~900 functions)... This package is now almost 10 years old and I'm very happy how this refactor turned out!

In terms of file size impact: The FULL minified pkg bundle is now 56.4KB vs previously 48.5KB, however the code density has improved and the brotli-compressed pkg size is only 15.1KB (only 1KB larger than before), which I found absolutely incredible! 🎉 I also have to state once more that this package (and most others in #ThingUmbrella) are _designed for tree shaking_ and bundling. Hardly any project would ever use the full set of functions provided here all at once, most will only use a small/tiny subset...

Also — more importantly — many of the 185 example projects in the repo are now showing between 2-25% smaller final bundle sizes. Some also have become slightly larger, but so far I found the most by only ~2%...

Related to this change: I've also updated the thi.ng/color & thi.ng/matrices packages to be free from dynamic code generation now! The only packages still using `new Function(...)` are the following, but for those it's unavoidable and dynamic code generation is a core feature:

- thi.ng/pixel (custom pixel format definition/compilation)
- thi.ng/pixel-convolve (custom image convolution kernel compilation)
- thi.ng/shader-ast-js (Shader AST to JavaScript compilation)

I will do more testing over the coming days, then release new version(s) ASAP...

#TypeScript #JavaScript #CodeGeneration #Vectors #OpenSource

Waseemiamwaseem
2025-04-12

Postgres is actually all you need. No need to build a complex setup of different databases.

I use postgres for all data storage requirements. I've been using it as a vector store too. It's been holding up very nicely.

Karsten Schmidttoxi@mastodon.thi.ng
2025-04-11

In recent years every spring seems to turn into a period of _massive_ refactoring & restructuring in #ThingUmbrella — maybe it's a form of spring cleaning, even though the reasons[1] are not seasonal... Currently spending my nights reworking the thi.ng/vectors package (likely one of the most comprehensive vector packages available for TS/JS) and trying out different splits/structures, testing their impact on package sizes and usability in existing downstream packages. Currently over 3000 source files with uncommitted changes... aaaarrrgghh! 🤯

Most functions (vector operations) in this package exist in multiple versions (many code generated, but now in need to be updated): Generic n-dimensional, loop-free, optimized 2D/3D/4D versions and strided versions for manipulating vectors views of larger nD data buffers (supporting all kinds of data layouts, incl. AOS, SOA, hybrid...)

[1] mastodon.thi.ng/@toxi/11429644

#ThingUmbrella #Vectors #TypeScript #JavaScript #Refactoring #OpenSource

#TDR GBIF and @GigaScience have extended their third call data papers on #vectors of human disease for inclusion in a thematic series published in #GigaByteJournal!

The new deadline is 6 June 2025 🦟

Join the team for a #webinar to learn how to submit your work to the series, learn from previous examples of published work and get tips for submitting vector data to GBIF.

📍22 April 2025 17:00 - 18:00

Webinar:🔗 ow.ly/AEFN50VutFC

Call: 🔗ow.ly/jvHG50VutFB

close up photo of a mosquito
2025-04-08
Oldie from when I made myself use vectors every day.

#vectors #bezier #drawing #illustration #cat #space #mice #spaceships #astronaut #catastronaut
N-gated Hacker Newsngate
2025-04-06

✨🚀 Brace yourselves for groundbreaking advancement of... feathering?! That's right folks, the cutting-edge of 2025 is a glorified . Next up, the , but, like, for . 🙄🛞
rive.app/blog/how-rive-reinven

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst