cas-function: locuscurve - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP Prime Software Library (/forum-15.html) +--- Thread: cas-function: locuscurve (/thread-10209.html) |
cas-function: locuscurve - Arno K - 02-20-2018 10:34 AM This small program provides on input of a set of function f(x,k) and an additional parameter p a list containing the equations (as strings to be easily usable in plots) of extreme points (p=1) or turning points (p=2). As I did not want to bother about used variables x and k must be used. f may also be an expression. Code: locuscurve(x*e^(-k*x^2),1) Code: {"y:=x^2/(abs(x)*e^(1/2))","y:=-x^2/(abs(x)*e^(1/2))"} Code: // calculates the curve through locuspoints of a parametric function which must be dependent from x and k RE: cas-function: locuscurve - Arno K - 02-27-2018 11:32 PM Slight changes because it does not work on turning points when they are unique, i.e. independent from k. In the moment solve returns a vector containing 0 as first entry as I tried on some examples, so I made a quick and dirty fix for this. When someone encounters problems, pm me. Another thing to be mentioned, CAS settings, Complex on and Use i on increase speed noticably. Arno Code:
|