Hey, Christian, how are you?
You can do
f[a_Integer,x_Real]:=a*x^2
so, when you use manipulate, you will be able to run the following code
Manipulate[Plot[f[a,x],{x,-5,5}],{a,1,50,1}]
Hello Estevao,
thank you so much for helping!
Im not sure but naybe you could use some assumptions. https://reference.wolfram.com/language/guide/AssumptionsAndDomains.html
check also
https://mathematica.stackexchange.com/questions/66273/how-to-tell-mathematica-that-certain-variables-are-real-imaginary-integer-value
https://mathematica.stackexchange.com/questions/118955/how-to-assume-all-variables-in-my-code-are-reals
Thank you so much for your reply! It works perfectly, however, do you also have a solution where I can define the parameter globally? In a way, that I can define a as an integer and use this to define several functions? Or do I have to enter every time I use the parameter that this is an integer?
Thank you so much!