Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Sorunome on December 21, 2014, 08:04:35 pm

Title: Vectorial Math
Post by: Sorunome on December 21, 2014, 08:04:35 pm
Ever dreamed about being able to do vectorial math on your z80 calculator? Well, I started making an app for that!
So far it only features the scalar (dot) product, lol. You can switch between the different product types by hitting the multiply key multiple times.

(https://img.ourl.ca/teaser-2.gif)
Title: Re: Vectorial Math
Post by: chickendude on December 21, 2014, 11:04:04 pm
So that's what this all was for :D I really have no clue what vectorial math is, though.

Btw, should this be in the asm subforum or the z80 projects forum?
Title: Re: Vectorial Math
Post by: DJ Omnimaga on December 22, 2014, 12:18:13 am
Interesting. Although at first I thought this would draw vectors lol :P
Title: Re: Vectorial Math
Post by: Juju on December 22, 2014, 02:28:26 am
Nice, just what I needed back then in my vectorial math courses.
Title: Re: Vectorial Math
Post by: Sorunome on December 23, 2014, 07:58:21 am
re-wrote how tokens are handled and added the cross product ^.^
Title: Re: Vectorial Math
Post by: pimathbrainiac on December 23, 2014, 10:35:54 am
Screenies or it didn't happen :P

Nice job! I hope to see more out of this in the near future (because vectors and Physics)!
Title: Re: Vectorial Math
Post by: aeTIos on December 23, 2014, 10:44:11 am
Is this a parser hook?
Title: Re: Vectorial Math
Post by: Sorunome on December 23, 2014, 10:44:55 am
Is this a parser hook?
yes and a key hook so taht if you hit the times key multiple times you get the new token
Title: Re: Vectorial Math
Post by: TIfanx1999 on December 23, 2014, 11:11:01 am
So vectorial math alternates between multiplication and addition? (I've never heard of it either). Anyhow, it's always nice to see new math programs. :)
Title: Re: Vectorial Math
Post by: Sorunome on December 23, 2014, 11:12:25 am
So vectorial math alternates between multiplication and addition? (I've never heard of it either). Anyhow, it's always nice to see new math programs. :)
Lol, there's the dot product and the cross product as 'main' things, i guess.
I already added both, then I also added getting the length of a vector and 'normalizing' a vector, so scaling it down to the length of 1

Right now I'm trying around on making a custom menu when hitting STAT twice
Title: Re: Vectorial Math
Post by: bb010g on December 24, 2014, 01:30:57 am
So vectorial math alternates between multiplication and addition? (I've never heard of it either). Anyhow, it's always nice to see new math programs. :)
Lol, there's the dot product and the cross product as 'main' things, i guess.
I already added both, then I also added getting the length of a vector and 'normalizing' a vector, so scaling it down to the length of 1

Right now I'm trying around on making a custom menu when hitting STAT twice

Could you make another alpha-F? menu also/instead?
Title: Re: Vectorial Math
Post by: Sorunome on December 24, 2014, 05:17:29 am
Yeah I thought about making also such input fields on MP calcs. Depending on how complex it'll be
Title: Re: Vectorial Math
Post by: Digital on January 05, 2015, 06:49:37 pm
is this project dead? i woud be glad to use this app;)
Title: Re: Vectorial Math
Post by: Sorunome on January 06, 2015, 03:56:34 am
No, it isn't dead, but it is currently on-hold as I need to figure stuff out.... http://www.cemetech.net/forum/viewtopic.php?p=228847#228847
Title: Re: Vectorial Math
Post by: Sorunome on January 11, 2015, 07:07:39 am
Soooo I got a little issue with pasting characters - inside of the TIOS text edtior.
well, the result is looking like this:
(https://img.ourl.ca/crash.gif)

My insert token routine is this:
Code: [Select]
insertTok:
; hl - tok
; bc - len (bytes)
   push bc
      ld de,appBackUpScreen
      ldir
   pop bc
   ld hl,appBackUpScreen
   ld (rclQueue),hl
   add hl,bc
   ld (rclQueueEnd),hl
   set 7, (iy+0Eh)
   set 2, (iy+33h)
   ret
Any help would be awesome ^.^
Title: Re: Vectorial Math
Post by: Eiyeron on January 11, 2015, 08:35:42 am
Looks pretty fine to me.
Title: Re: Vectorial Math
Post by: Sorunome on January 16, 2015, 04:26:14 pm
How about calculating the distance between two points? Or, the distance between a line and a point?
(https://img.ourl.ca/length.gif)
Bored with three dimensions? This works in n dimensions!
Title: Re: Vectorial Math
Post by: Sorunome on January 17, 2015, 02:42:17 pm
Soooo,
implemented features:


Will implement:


the start (*) indicates that that function is, due to definition stuff, only possible in three dimensions (stuff with plains)

Any other ideas?


EDIT: Did i say that i was making plain stuff only three-dimensional? How about an n-1 dimensional plain in an n-dimensional space? ^.^
Title: Re: Vectorial Math
Post by: Sorunome on March 10, 2015, 01:50:36 pm
Now have a snapshot attached for whatever you want. Use at your own risk, i know that when hitting stats twice in the prog. editor and trying to paste a token your calc will crash :p
Title: Re: Vectorial Math
Post by: Digital on March 10, 2015, 07:01:50 pm
yes!
i'm going to test it, we have vectorial marh in maths period:)
i think i'll troll a litttle bit but is also very usefull thought (xd)

EDIT:

we don't have vectorial math this school year :'(

as sorunome said, the calculator crashes posting a command in the prog editor(i was bored in math period so i tried it out)

there are just two ways to quit the vector menu: by pressing 2nd * quit or choosing an optioon. this is annoying because i'm not used to quit menu's this way.

but all in all it lookes fine to me, i just need knowledge in vectorial math.
Title: Re: Vectorial Math
Post by: Sorunome on March 11, 2015, 12:17:34 pm
[...]
there are just two ways to quit the vector menu: by pressing 2nd * quit or choosing an optioon. this is annoying because i'm not used to quit menu's this way.
[...]
I find that annoying, too, but the thing is, i use system routines for the menu :p