OneSolution() returns a hashtable of variablename-to-term bindings ( they say ). Then you have to inspect to the term (untested).
OneSolution() returns a hashtable of variablename-to-term bindings (they say). Then you have to inspect to the term (untested): Term listTerm = q4.oneSolution(). Get("X"); Term firstListItem = listTerm.
Arg(1); double value = firstListItem.doubleValue(); // alternatively, use intValue() or so Also check Term's documentation. Edit: fixed mistakes.
I don't think Term firstListItem = t2. Arg(1); works – Venkata Oct 12 at 3:13 I meant listTerm. Arg(1), of course.
Remember you should accept answers of your questions. You haven't accepted any of your old questions. You won't get many answers unless you do that.
– chs Oct 12 at 13:15 i'm new to this site..so did not know that I should accept answers..sorry for that – Venkata Oct 12 at 19:16 In the same way if the solution is myNumber(X): X = '. '(2, '. '(3, )) how should I pass the arguments to obtain all the values 2,3, etc... – Venkata Oct 12 at 20:30 void toList(Term t, List xs) { if (t.arity() == 2) { xs.
Add(t. Arg(1).doubleValue()); toList(t. Arg(2), xs); } } or you might wanna use Term.toTermArray(), I suspect – chs Oct 127 at 13:18.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.