"Intégrer une fonctionIntegrating an Exponential Function in Glide: Tips or Solutions? exponentielle dans Glide : astuces ou solutions ?"

:waving_hand: Hello Glide Community!

I’m currently building an app with Glide and I’m trying to use an exponential function in my calculations (like EXP(x) or e^x). I’ve explored the available computed columns, but I haven’t found a way to implement this directly.

:magnifying_glass_tilted_left: Does anyone know how to achieve this in Glide?
:backhand_index_pointing_right: Is there a specific formula, a trick using JavaScript columns, or another method to calculate exponential values?

Thanks in advance for your help! :folded_hands:

You can try this column.

1 Like

Hi @Jonathan_Martin :slight_smile:

You’ve found the answer — it’s in your question, my dear friend :smiley:
Just use the ^ character in a Math column.

It’s also possible to make it dynamic. Here’s an example of 2^x, where x depends on another column:


Edited Section (after @Tri_Trinh’s answer)

You could go for that one too. But it’s an overkill don’t you think? :stuck_out_tongue:

In addition to the @Tri_Trinh’s link, if the point is the e function more than the exponent, here’s an option using - indeed - JavaScript (as an alternative of Excel’s one):

let x = p1;
let result = Math.exp(x)

return result

Apologies, my previous response was a bit hasty :pensive_face: