02-16-2018, 12:57 AM
Hi Friends,
I need to create an INPUT with ONE field that accept REALS (0 type) and too FUNCTIONS (8 type) so I used [ 0 , 8 ] as [allowed_types_matrix] ... this field only accept REALS (0 type) AND WITH 'X+5' GIVES "Error : Invalid input"
I created the following program for example (with 2 fields to not leave the form and test many times):
Please Your help with any suggestion, thanks.
Best regards!!
josephec
I need to create an INPUT with ONE field that accept REALS (0 type) and too FUNCTIONS (8 type) so I used [ 0 , 8 ] as [allowed_types_matrix] ... this field only accept REALS (0 type) AND WITH 'X+5' GIVES "Error : Invalid input"
I created the following program for example (with 2 fields to not leave the form and test many times):
PHP Code:
EXPORT INPUTTEST
BEGIN
LOCAL fx, a;
fx:='SIN(X)'; a=0;
INPUT(
{{fx,[0,8],{44,54,1}},{a,[0],{44,54,2}}},
" INPUT TEST ",
{"F(X):", "Real a :"},
{"Enter F(X), could be constant, example = 5 ", "Enter a real value"},
{'SIN(X)', 0})
END;
Please Your help with any suggestion, thanks.
Best regards!!
josephec