cas-function: locuscurve
|
02-20-2018, 10:34 AM
(This post was last modified: 02-22-2018 02:54 PM by Arno K.)
Post: #1
|
|||
|
|||
cas-function: locuscurve
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 |
|||
02-27-2018, 11:32 PM
Post: #2
|
|||
|
|||
RE: cas-function: locuscurve
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:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)