.

Parameters:Working:

.

overshoot4half-cycles16

.

elasticity4adjusted half-cycles16.5

.

compression2

.

first peak0.246182981958665

.

Result:scale factor-2.64169298626484

.

.

xcos fnexp dampeningscaledy

.

01110

.

0.020.9997850477173330.946882175755570.9579946499230080.042005350076992

.

0.040.9965626113388820.8938881860231470.9365948526811650.063405147318835

.

0.060.9826387109152560.8347602898931630.9271842843986220.072815715601378

.

0.080.94547310849290.7606877055451880.9168128120653810.083187187934619

.

0.10.8686315144381910.6618843339050180.8860549561588670.113945043841133

.

0.120.7341092216582880.5297811525097960.8063314999761920.193668500023808

.

0.140.526777782831170.3600415131741690.6377383744365020.362261625563498

.

0.160.2413799425321770.1562484118736120.329695271349650.67030472865035

.

0.18-0.108485176602808-0.066508038054156-0.1711246851240711.17112468512407

.

0.2-0.481753674101715-0.279716493818845-0.8983225564284281.89832255642843

.

0.22-0.806423963175647-0.443451133030288-1.819575103200652.81957510320065

.

0.24-0.987884142042502-0.514490858253993-2.760871235568563.76087123556856

.

0.26-0.93499910276089-0.461181785671515-2.883026827133953.88302682713395

.

0.28-0.603931603431277-0.282122688013248-1.925199757330462.92519975733046

.

0.3-0.047106450709644-0.020841066701099-0.1540668854394631.15406688543946

.

0.320.5610435942200590.2350852996349381.8683435318777-0.868343531877703

.

0.340.9579828378418060.3801682970178953.22358691661213-2.22358691661213

.

0.360.9069558128638640.3408737836294283.06041020487483-2.06041020487483

.

0.380.3605178114968050.1283286136831121.21066063734769-0.210660637347695

.

0.4-0.425779291565073-0.143539231159993-1.412123696634792.41212369663479

.

0.42-0.960817865222139-0.306772520313582-3.123288567001894.12328856700189

.

0.44-0.819232122682446-0.247726040771301-2.590306628678963.59030662867896

.

0.46-0.027014409986117-0.007736588171739-0.0824523767557041.0824523767557

.

0.480.8119612924962040.2202310873298752.37408811146924-1.37408811146924

.

0.50.9238795325112870.237327435696672.56815359256937-1.56815359256937

.

0.520.120344758809710.0292785177030530.3156220206829540.684377979317046

.

0.54-0.829544738432886-0.19113975365645-2.037064224129673.03706422412967

.

0.56-0.853623535622967-0.186280284961685-1.947809182377882.94780918237788

.

0.580.1582959346884070.0327159532200640.3330851229645470.666914877035452

.

Explanation:0.60.9822872507286880.1922727014773341.89155839680856-0.891558396808561

.

This is supposed to be a spring-like function. You specify how far past the target value to overshoot (typically something like 1.2 would be suitable) and then how much it should spring back and forwards.

The formulae here are not quite right. If you overshoot by about '5' the second peak is higher than the first. Also, values of '1' for the overshoot or less don't work. I think we should not allow values less than '1' but at least '1' should work.

Also sometimes there is a lump on the section between 0 and the first peak. That's not right. And it should probably not ease-in quite so much?

Anyway, you get the concept--it should progress from 0 to the overshoot value and then gradually converge on 1. More elasticity means it shoots to the overshoot value sooner since there are more cycles to fit in.

If the overshoot value is 3 or more, it's probably reasonable if the animation goes backwards first but currently I've made sure it doesn't do that.
0.620.4745798864026590.0879787430769420.8299972867282420.170002713271758

.

0.64-0.725518523747197-0.127381463506382-1.143647735757312.14364773575731

.

0.66-0.831644108804554-0.138288016826125-1.172594993485082.17259499348508

.

0.680.3959942928870150.0623627508667470.4956287883288450.504371211671155

.

0.70.9645574184577990.143864528503741.06351369388494-0.063513693884943

.

0.72-0.167594714205523-0.023674197285147-0.1615522636244641.16155226362446

.

0.74-0.993822274489234-0.132957541353384-0.8311693360426921.83116933604269

.

0.760.0953592987459890.0120824943836890.0686692362471520.931330763752848

.

0.780.992656347960810.1191192036869660.6108109316938270.389189068306173

.

0.8-0.187381314585728-0.021296019841329-0.0977762085983711.09777620859837

.

0.82-0.95616176200751-0.102918355259774-0.4198823741142161.41988237411422

.

0.840.4325893596863170.0440987827978680.1586542799914480.841345720008552

.

0.860.8026925845384680.0774977911352060.2440030324695420.755996967530458

.

0.88-0.765685323336435-0.070013163281498-0.1914505574193661.19145055741937

.

0.9-0.411514358605112-0.035637208236483-0.0839927830732571.08399278307326

.

0.920.9941660338363010.0815392864618130.1643829960905480.835617003909452

.

0.94-0.246863710195362-0.019175846360047-0.0328160678398421.03281606783984

.

0.96-0.7970361462173-0.058636037108281-0.0845335195239281.08453351952393

.

0.980.8861065273006120.0617393187885090.0744130045400960.925586995459904

.

10001