symbolic and automatic differentiation & code generation · t5 = tll = t12 t18 t19 t21 = t22...

Post on 31-Jul-2020

8 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Symbolic and Automatic Differentiation & Code Generation

!Doug James

Motivation: Bending Force

Now take a second derivative!

Symbolic math tools

• Useful for differentiation & optimized code gen.

• Examples:

• Maple

• Matlab

• Mathematica

• ...

Motivation 2: Newton-Schulz Iteration

• See whiteboard

Example 1Evaluate the algebraic expression

where

Example 1

Example 1

Example 2

Example 2

Doh!Doh!

Doh!Doh!

Doh!

Doh!

Example 3: Newton-Schulz Iteration

• See code

Example 4: Neo-Hookean material

Example 4: Neo-Hookean material

Example 4: Ogden material

See code output(!)

Automatic Differentiation: Many compilers available

Automatic Differentiation: Many compilers available

top related