HP PRIME - Bode and Black plots - first attempt - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: HP PRIME - Bode and Black plots - first attempt (/thread-253320.html) HP PRIME - Bode and Black plots - first attempt - dg1969 - 10-20-2013 Hello, Here is a small attempt for a basic program which help to plot Bode and Black plots... Assumes that applets "Bode" and "Black" were created derived from function app for Bode and parametric app for Black. These basic code work... Can you comment and help me improve? ```EXPORT SLDI() BEGIN Bode.F1:="1/(1+'X'+'X'^2)"; input(Bode.F1,"Entrez la fonction de transfert","FT(X)=","Attention utilisation de 'X' "); Bode.F2:=eval("20*LOG(abs(Bode.F1(i*ALOG('X'))))"); Bode.F3:=eval("ARG(Bode.F1(i*ALOG('X')))"); Black.X1:=eval("ARG(Bode.F1(i*'T'))"); Black.Y1:=eval("20*LOG(abs(Bode.F1(i*'T')))"); END; ``` I have two questions : 1) How can I do in program something like these : Bode.F2:=Bode.F1('i*X'); To obtain the expression developed in Bode.F2(X). In fact get the same thing as the soft button "Eval" in Symb view. 2) How can I get the display of the "plot" view of the applet "Bode" or "Black" from inside the program with a choose box for example... 3) Can we create a page containing both "input" area and "choose" area. In a single page: input the transfer function and check a choose box for black or Bode plot and then launch the plot view of bode or Black... My apologise for my bad English...