exp
Definition
-- @/=[C]:-1
function exp(...)
Callers
@/lua/vehicle/ai.lua
local v_rel = dV:dot(nvec) -- lateral relative speed between ego vehicle and v-vehicle
local a = math.exp(-square(dS / egoLength)) -- Intensity factor
a = a > 0.05 and a or 0
if v.sideDir == sign(distY) then
local forceCoef = sign(distY)*max(0, ((n1i.radiusOrig) - abs(distY))*math.exp(-0.001*square(Deltax)))*(1*parameters.awarenessForceCoef*dt)
forceCoef = forceCoef*max(factor1, factor2)*trafficStates.side.side
@/ui/lib/ext/angular/angular.js
* var exp = $interpolate('Hello {{name | uppercase}}!');
* expect(exp({name:'Angular'})).toEqual('Hello ANGULAR!');
* ```
* var exp = $interpolate('{{greeting}} {{name}}!');
* expect(exp(context)).toEqual('Hello !');
*
* exp = $interpolate('{{greeting}} {{name}}!', false, null, true);
* expect(exp(context)).toBeUndefined();
* context.name = 'Angular';
* context.name = 'Angular';
* expect(exp(context)).toEqual('Hello Angular!');
* ```
forEach(expressions, function(exp) {
lastValue = exp(scope, locals);
});
@/lua/ge/extensions/editor/terrainAndRoadImporter.lua
local y = j - center
kernel[i][j] = exp(-(x*x + y*y) / (2 * sigma * sigma)) / (2 * pi * sigma * sigma)
sum = sum + kernel[i][j]
@/lua/vehicle/wheels.lua
local sigma1 = 1 / (1 + exp(-z1))
local sigma2 = 1 / (1 + exp(-z2))
local sigma1 = 1 / (1 + exp(-z1))
local sigma2 = 1 / (1 + exp(-z2))
local f = sigma1 + sigma2 + config.a
@/inspector/External/CodeMirror/javascript.js
function expect(wanted) {
function exp(type) {
if (type == wanted) return cont();
@/inspector/Models/Geometry.js
if (zeta < 1) // Under-damped
t = Math.exp(-t * zeta * w0) * (A * Math.cos(wd * t) + B * Math.sin(wd * t));
else // Critically damped (ignoring over-damped case).
else // Critically damped (ignoring over-damped case).
t = (A + B * t) * Math.exp(-t * w0);
@/lua/ge/extensions/editor/gen/exp_frame.lua
local function bang(x)
return math.pow(x,4)/(1-1/(1+math.exp(-5*x)))/16
end