Hi Federico
I understand that you wish to plot K against x. Normally, you should separate out one variable in terms of the other in order to plot them. As per the formula you have provided, this would amount to taking cos inverse, which may affect your solution's range. So I would suggest that you start with one variable making it constant and vary the others. Plot for all the values similarly. Hope this helps.
Cheers
