Trying to output function to a text or excel file
- March 19, 2013
- 5 replies
- 2040 views
I've tried many approaches in Prime 2.0 to output the result of a function to a file for use in another application.
There seems to be little that's intuitive about Prime, and no information about exporting data.
I need to export the result of a function F(t,n) where t and n are not integers. Seems i have to create a matrix to do this. But all attempts fail for one reason or another.
Writing it as a program it won't let me assign the output of the function to a matrix column as a declaration, and as a declaration statement; I have to use the matrix integers as part of the function. But since they aren't integers, it can't be done. Do I have to rewrite this to convert the integers of a matrix to be the variables in the equations? As in MathCAD can't work with floating point numbers directly in a matrix?
if t:= 0, T/1000..T n = 10
F(t,n):= a summtion as variable approaches n
Why can't I assign a matrix[x,0] := t
matrix[x,1]:=F(t,n)
then use WRITEFILE to output the info?
I'm about to just program this in Visual Studio and skip mathCAD completly... it shouldn't be this hard. I've talked to other MathCAD users and none of them can figure it out either.

