RicardoSantos

Function: Complex Numbers

913 vizualizações
54
A set of functions to handle complex numbers.

from https://en.wikipedia.org/wiki/Complex_number:
A complex number is a number that can be expressed in the form a + bi, where a and b are real numbers, and i represents the imaginary unit, satisfying the equation i2 = −1. Because no real number satisfies this equation, i is called an imaginary number.
Notas de Lançamento: added a few extra functions, based on the js library:
//https://github.com/trekhleb/javascript-algorithms/blob/477f30b0bdac6024874d2976de1eca7afe0176dd/src/algorithms/math/complex-number/ComplexNumber.js#L3
Notas de Lançamento: added better formatting and comments on all functions, work in progress(complex arrays UDF)
Notas de Lançamento: corrected some issues added more comments
Notas de Lançamento: added "complex_set" functions for complex numbers, streamlined calls to use it, improving readability..
Notas de Lançamento: added: f_complex_equals(), f_complex_ceil().
improved comments.
Remover dos scripts favoritos Adicionar aos scripts favoritos

Comentários

Thanks for sharing these, very useful!
+3 Resposta
for those wondering the uses of complex numbers in finance this link is a decent place to start:
https://economics.stackexchange.com/questions/8670/what-are-the-applications-of-complex-numbers-in-modern-economics
+2 Resposta
@Piticu, sometimes (often) it is best to first read what you want to post before actually posting it, this gives less embarrassment for yourself.

@RicardoSantos, your work is getting more and more suited to frame and hang on the wall as artwork!
+1 Resposta
Thank you great human, the trading and rest is less important.
I wish you the best!
+1 Resposta
Great work (as usual) Thank you!
Resposta
I was waiting for a code for imaginary numbers... is all I wished, can`t wait to implement this in my strategy to make me some imaginary results.
So many defenders and yet no example how this code can be used , all pro`s here who knows how good this code is and yet a noob like finds no real use, why the hell earth is keeping me alive...
Resposta
wroclai Piticu
@Piticu, Wow, you're actually doubling-down. NO ONE OWES YOU anything. Quit whining and start pounding books. Get out of here with your entitled crap. "why the hell earth is keeping me alive" .. on the other hand, DM me if you need someone to talk to because this is quite an odd thing to say in this context on this venue.
Resposta
Ricardo, eu achei MUITO interessante aquele teu post sobre regressão polinomial, mas fiquei confuso pq n tenho muito conhecimento sobre esse tema. Li os links que tu colocou lá e vi mais alguns videos no youtube, mas ainda está tudo muito confuso sobre como eu poderia usar isso nos trades. Pretendo seguir estudando obviamente, mas será que tu podia algum dia escrever algo sobre o uso pratico do script? Eu fico me sentindo um macaco tentando entender os teus scripts, mas acho muito interessante as coisas q tu posta por aqui
Resposta
Useless... why do you even bother to help the community? Probably will be voted as script of the month and posted in editorials pick like all other kind, for 90% noobs on TV you should post useful codes that has use in day trading if you really want to contribute, followed you because you use to post good codes now you only share you level up knowledge for others like you who understand this kind of code ... sad
Resposta
@Piticu, strategies require logic, logic requires math, math requires expression, expression requires language. RicardoSantos is one of those rare breed of authors who freely and selflessly provides the necessary language so that others may use his ideas to build amazing indicators. Without his contributions many of the tools available here might not have ever been created.
+9 Resposta
Início Rastreador de Fundamentos Rastreador Forex Rastreador de Criptomoedas Calendário Econômico Como Funciona Recursos gráficos Preços Indique um Amigo Regras da Casa Central de Ajuda Soluções para Sites & Corretoras Widgets Soluções em Gráficos Biblioteca de Gráficos Lightweight Blog & Notícias Twitter
Perfil Configurações de perfil Conta e Cobrança Amigos indicados Moedas Meus Tíquetes de Suporte Central de Ajuda Ideias Publicadas Seguidores Seguindo Mensagens Privadas Conversa Deslogar