Yanfly Job Points - Tying JP Gain to a Stat

I've been looking around for an answer to this question, but couldn't find it anywhere. Does anyone know if it's possible to effect JP gain for specific actors using that actors stats? I'm trying to create something like in Fallout, where high Intelligence results in more experience. The formula I'm trying to apply to it is something like:

1 + magic attack / (magic attack / 2.5) = Number of JP Gained Per Level

I've been trying to apply this directly to the plugins parameters in the "JP Per Level" box.The problem is mostly that I know next to nothing about Javascript or even RPGMaker MV in general. Any help is greatly appreciated, even if it's just to tell me it can't be done. Thanks. C;

EDIT: Yanfly's Job Points Plugin - http://yanfly.moe/2015/11/13/yep-27-job-points/
Please add a link to the plugin.
Sorry about that, updated the original post.
Try this formular:

1 + this.mat / (this.mat / 2.5)

mat stands for magic attack

Here's a list of the stats

hp => HP
mp => MP
tp => TP
mhp => Max HP
mmp => Max MP
atk => Attack
def => Defense
mat => Magic Attack
mdf => Magic Defense
agi => Agility
luk => Luck
hit => Hit Rate
eva => Evasion Rate
cri => Critical Rate
cev => Critical Evasion Rate
mev => Magic Evasion Rate
mrf => Magic Reflection Rate
cnt => Counter Attack Rate
hrg => HP Regeneration Rate
mrg => MP Regeneration Rate
trg => TP Regeneration Rate
tgr => Target Rate
grd => Guard Effect Rate
rec => Recovery Effect Rate
pha => Pharmacology
mcr => MP Cost Rate
tcr => TP Charge Rate
pdr => Physical Damage Rate
mdr => Magical Damage Rate
fdr => Floor Damage Rate
exr => Experience Rate
 
Thank you for the reply. I tried entering this with a little variation, I decided on:  this.luk / (this.luk / 2.5) 

The plugin doesn't show any signs of being unable to process what I ask for, but the results are... weird. He's just gaining 2 JP every level. This is the same for several levels in a row, and if the formula was taking effect, by level 4 he would have 10 luck, and so should be gaining 4 JP (or at least more than 2!).

So now I'm just confused. :c
I will say that I didn't know how to abbreviate some of those stats, though, so that is very useful to me!
Thank you for the reply. I tried entering this with a little variation, I decided on:  this.luk / (this.luk / 2.5) 

The plugin doesn't show any signs of being unable to process what I ask for, but the results are... weird. He's just gaining 2 JP every level. This is the same for several levels in a row, and if the formula was taking effect, by level 4 he would have 10 luck, and so should be gaining 4 JP (or at least more than 2!).

So now I'm just confused. :c

I will say that I didn't know how to abbreviate some of those stats, though, so that is very useful to me!
Let's calculate it.

If your character has 10 luck and gains a level, your formular would be:

10 / (10 / 2.5) =>

10 / 4  = 2.5

The result is 2.5 not 4.

And 2.5 will be 2 JP, so it works as it should. BD

With your formular, the result will always be 2.5.
Oooh I think I got myself confused when I wasn't using my calculator incorrectly over here, it had been showing me the result in parenthesis instead of the problem as a whole! Here I thought I had a good way to scale the points going. c':

Thank you so much, it's good to know I should be able to come up with something now!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-job-points-tying-jp-gain-to-a-stat.51283/