| Author |
Message |
Topic: Portfolio Variance - Programming |
jmurphy1337
Replies: 1
Views: 1557
|
Forum: BASIC Programming Posted: January 3, 2010 9:24 PM Subject: Portfolio Variance - Programming |
Assuming you know how to do the first bit, the double sum can be written as follows.
2*sigma(sigma(expression,j,0,jmax),i,0,imax) |
Topic: Inputting values to lists |
jmurphy1337
Replies: 1
Views: 1202
|
Forum: BASIC Programming Posted: January 3, 2010 9:17 PM Subject: Inputting values to lists |
In order to add on an extra number to a list, use the augment function.
augment({1,2},{3}) produces
{1 2 3}
As for seeing if a number is divisible by any elements in the list, use the mod funct ... |
Topic: Unlimited Input |
jmurphy1337
Replies: 1
Views: 1129
|
Forum: BASIC Programming Posted: January 3, 2010 8:53 PM Subject: Unlimited Input |
I'm not sure how to do exactly what you are describing.
However, I have a viable alternative suggestion. Make the argument a list.
ie.
eqres(res)
Func
sum(res^-1)^-1
EndFunc
And to us ... |
Topic: Multiplication in a functioni |
jmurphy1337
Replies: 1
Views: 755
|
Forum: BASIC Programming Posted: January 3, 2010 8:40 PM Subject: Multiplication in a functioni |
On the 89's you must type x * y to multiply x and y.
If you don't use the * it thinks you are calling the variable "xy" |
| |