Skip to main content
11 events
when toggle format what by license comment
Feb 15 at 16:41 history edited Domen CC BY-SA 4.0
added 15 characters in body; edited tags; edited title
S Feb 15 at 16:30 history suggested codebpr CC BY-SA 4.0
made grammatical and structural changes
Feb 15 at 15:52 review Suggested edits
S Feb 15 at 16:30
Feb 15 at 15:46 answer added Glenn Welch timeline score: 1
Feb 15 at 14:34 answer added Roland F timeline score: 2
Feb 15 at 1:28 comment added Goofy "possible to convert to Cos[Divide[x,y]]?" -- That's what I mean in (2). In (3): A system function computes a value for you. How can you keep the function from using x * y^-1. For example, a symbolically computed jacobian in FindRoot or other function.
Feb 15 at 0:50 comment added Felipe @Goofy What do you mean by (3)? If I generate a Cos[x/y] through some derivative it is not possible to convert to Cos[Divide[x,y]]? Convert using code, of course.
Feb 14 at 16:53 comment added Goofy (1) Any code evaluated symbolically before numerically will convert Subtract and Divide. So you have to avoid that. Somehow. (2) You could post-process generated code, making sure it was held (not evaluated) until numeric inputs are in place. (3) Subtractions and divisions within internal functions are probably unreachable. (4) Internal functions evaluated on numeric input sometimes perform different computations than what would be done by the expression returned when evaluated on symbolic input. (E.g. Eigenvalues.) Tricky to optimize in such a case.
Feb 14 at 16:35 comment added Felipe I work with a variety of input functions and some of them depend on special functions, which don't compile.
Feb 14 at 16:33 comment added Domen Why don't you compile your code? Certainly, this will much more improve the performance than only converting things to Subtract and Divide.
Feb 14 at 16:25 history asked Felipe CC BY-SA 4.0