Le forum de XCAS

Xcas: un logiciel libre de calcul formel
Nous sommes actuellement le Lun Mai 21, 2018 10:49 am

Heures au format UTC




Publier un nouveau sujet Répondre au sujet  [ 10 messages ] 
Auteur Message
 Sujet du message: signal processing commands
MessagePublié: Sam Fév 10, 2018 9:14 pm 
Hors-ligne

Inscrit le: Ven Juin 30, 2017 9:55 am
Messages: 108
Localisation: Zagreb, Croatia
Hello Bernard, I have some new commands for Giac that I would like to share. Since there are already fft, readwav, writewav, playsnd and descriptive statistic commands in Giac, I implemented a few more (mainly based on fft algorithm): cross_correlation, auto_correlation, convolution, lowpass (filter), highpass (filter), threshold (for performing thresholding operations on a list) and a bunch of classical window functions (see the tex file for details). All the mentioned commands, taken together, form a basic signal processing toolbox. Also, this addition covers for 21 Maple commands when it comes to compatibility. Could these commands be added to Giac?


Pièces jointes:
signalprocessing.zip [7.99 Kio]
Téléchargé 34 fois
Haut
 Profil  
 
 Sujet du message: Re: signal processing commands
MessagePublié: Lun Fév 12, 2018 9:54 am 
Hors-ligne

Inscrit le: Mar Déc 20, 2005 4:02 pm
Messages: 4319
Great, thank you!
What should be added in giac-1.4.9/doc/aide_cas for the short online help?
The format is
# commandname
2 english short online help
0 syntax
-1 1st see also command
-2 2nd see also command
...
example1
example2


Haut
 Profil  
 
 Sujet du message: Re: signal processing commands
MessagePublié: Lun Fév 12, 2018 11:32 am 
Hors-ligne

Inscrit le: Ven Juin 30, 2017 9:55 am
Messages: 108
Localisation: Zagreb, Croatia
Thanks, the short help is below (containing also missing entries for domain, trigsimplify, nlpsolve and triginterp). Also I sent you the signalprocessing.tex file again with few typos corrected and examples added for lowpass and highpass.


Pièces jointes:
signalprocessing-doc.zip [5.06 Kio]
Téléchargé 30 fois
Haut
 Profil  
 
 Sujet du message: Re: signal processing commands
MessagePublié: Lun Fév 12, 2018 1:01 pm 
Hors-ligne

Inscrit le: Mar Déc 20, 2005 4:02 pm
Messages: 4319
I have updated the unstable source. I plan to build 1.4.9-47 binaries before the end of the week.


Haut
 Profil  
 
 Sujet du message: Re: signal processing commands
MessagePublié: Mar Fév 13, 2018 11:13 am 
Hors-ligne

Inscrit le: Dim Mai 20, 2007 7:09 am
Messages: 1065
Localisation: Paris
What is the difference between trigsimplify and tsimplify? Does trigsimplify stay with reals? could the doc explain it?


Haut
 Profil  
 
 Sujet du message: Re: signal processing commands
MessagePublié: Mar Fév 13, 2018 12:45 pm 
Hors-ligne

Inscrit le: Mar Déc 20, 2005 4:02 pm
Messages: 4319
trigsimplify handles only trig functions. tsimplify means transcendental simplification, it minimizes the number of transcendental functions so that all remaining functions in the expression should be algebraically independant.


Haut
 Profil  
 
 Sujet du message: Re: signal processing commands
MessagePublié: Mar Fév 13, 2018 10:05 pm 
Hors-ligne

Inscrit le: Ven Juin 30, 2017 9:55 am
Messages: 108
Localisation: Zagreb, Croatia
I wrote some documentation on trigsimplify for cascmd_en.tex:
Code:
\subsection{Simplify trigonometric expressions : {\tt trigsimplify}}\index{trigsimplify}
\noindent{\tt trigsimplify} simplifies trigonometric expressions
by combining {\tt simplify}, {\tt texpand}, {\tt tlin}, {\tt tcollect}, {\tt trigsin}, {\tt trigcos} and {\tt trigtan} commands in a certain order.\\
Input :
\begin{center}{\tt trigsimplify((sin(x+y)-sin(x-y))/(cos(x+y)+cos(x-y)))}\end{center}
Output :
\begin{center}{\tt tan(4*x/3)}\end{center}
Input :
\begin{center}{\tt trigsimplify(1-1/4*sin(2a)\verb|^|2-sin(b)\verb|^|2-cos(a)\verb|^|4)}\end{center}
Output :
\begin{center}{\tt sin(a)\verb|^|2-sin(b)\verb|^|2}\end{center}
It can be inserted immediately after tsimplify section.


Haut
 Profil  
 
 Sujet du message: Re: signal processing commands
MessagePublié: Ven Fév 16, 2018 4:47 pm 
Hors-ligne

Inscrit le: Ven Juin 30, 2017 9:55 am
Messages: 108
Localisation: Zagreb, Croatia
Actually, maybe it's better (for future versions) to move the cascmd_en entry for trigsimplify in Trigonometry section (5.21), it would make more sense and it would probably be more visible.


Haut
 Profil  
 
 Sujet du message: Re: signal processing commands
MessagePublié: Jeu Fév 22, 2018 12:05 am 
Hors-ligne

Inscrit le: Ven Juin 30, 2017 9:55 am
Messages: 108
Localisation: Zagreb, Croatia
I have corrected couple of typos, in lowpass/highpass examples the amplitude is 214 and it is meant to be 2^14 (now proper \verb command is added around ^ in the tex source).


Pièces jointes:
signalprocessing-doc_fix1.zip [3.2 Kio]
Téléchargé 26 fois
Haut
 Profil  
 
 Sujet du message: Re: signal processing commands
MessagePublié: Jeu Fév 22, 2018 7:47 am 
Hors-ligne

Inscrit le: Mar Déc 20, 2005 4:02 pm
Messages: 4319
Thanks, fix applied in my source.


Haut
 Profil  
 
Afficher les messages publiés depuis:  Trier par  
Publier un nouveau sujet Répondre au sujet  [ 10 messages ] 

Heures au format UTC


Qui est en ligne ?

Utilisateurs parcourant actuellement ce forum : Bing [Bot], Google [Bot] et 2 invités


Vous ne pouvez pas publier de nouveaux sujets dans ce forum
Vous ne pouvez pas répondre aux sujets dans ce forum
Vous ne pouvez pas éditer vos messages dans ce forum
Vous ne pouvez pas supprimer vos messages dans ce forum
Vous ne pouvez pas insérer de pièces jointes dans ce forum

Rechercher pour:
Sauter vers:  
cron
Powered by phpBB® Forum Software © phpBB Group
Traduction réalisée par Maël Soucaze © 2009 phpBB.fr