---- Posted May 5, 2019 Share Posted May 5, 2019 Im using a UDF in my script for this: $arcsinh = (ASinh($sigrad)) and it works just fine but then i go to compile it there are errors: Link to comment Share on other sites More sharing options...
Developers Jos Posted May 5, 2019 Developers Share Posted May 5, 2019 (edited) That could be, but did you actually read the Warning (not Error)? Jos Edited May 5, 2019 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
---- Posted May 5, 2019 Author Share Posted May 5, 2019 I read it but I dont see why its happening and have no clue how to fix it The variable is there so how could it not be declared or created Link to comment Share on other sites More sharing options...
Developers Jos Posted May 5, 2019 Developers Share Posted May 5, 2019 (edited) Well, the $ret[] array is not defined in the snippet you have posted, so what about you define it before use as a local variable? ... and you have an local array $arr defined for which purpose? Jos Edited May 5, 2019 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
---- Posted May 5, 2019 Author Share Posted May 5, 2019 (edited) I tried fixing it but the UDF just kept giving me issues so i just made the function myself\ In case someone in the future needs to make a arcsinh heres how: Log($x+(Sqrt($x^2+1))/Log(2.71828182845904523536028747135266249775724709369995)) Edited May 5, 2019 by ---- Link to comment Share on other sites More sharing options...
Subz Posted May 5, 2019 Share Posted May 5, 2019 As Jos said, you declared $arr you didn't declare $ret your code should look like: Func ConchoiidCurve($a, $theta) Local $ret[2] Local $r = sec($theta)+$a*Cos($theta) $ret[0] = Cos($theta)*$r $ret[1] = Sin($theta)*$r Return $ret EndFunc Func SemicubicalParabolaCurve($a, $t) Local $ret[2] $ret[0] = $t^2 $ret[1] = $a*$t^3 Return $ret EndFunc Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now