CP300 Question
#41
Posted 21 November 2003 - 12:49 AM
#42
Posted 21 November 2003 - 01:12 AM
#43
Posted 21 November 2003 - 03:10 AM
#44
Posted 21 November 2003 - 08:29 AM
sum({1,2,3,}^2) then |/? (ans) gives me the length.
Is there a shorcut??
#45
Posted 21 November 2003 - 10:24 AM
You could, for starters, sqrt the whole expression (putting it before the 'sum(' )
You could also write your own function to retrieve the length of a vector
If you don't like using 'sum(', you can dotprod the vector with itself, and take the sqrt of that
#46
Posted 21 November 2003 - 10:38 AM
How do I do that?You could also write your own function to retrieve the length of a vector
It looks kinda complicated
#47
Posted 21 November 2003 - 02:22 PM
(example 3-Dim)
For 2-dim just use the complex function compToPol(just ignor the e, the exponent is the angle)
x+y*i
#48
Posted 21 November 2003 - 08:56 PM
alternatively you can define a function that takes any vector (as a list variable):
define len(v)=sum(v^2)^.5
for using it:
len({1,1,1})
(would give sqrt(3))
#49
Posted 22 November 2003 - 09:41 AM
#50
Posted 22 November 2003 - 11:27 AM
-Resistive
-Capacitive
-Surface acoustic wave
What is the ClassPad touchscreen technology do you think ?
(Sorry because of my disturb)
#51
Posted 22 November 2003 - 12:40 PM
Sorry, that was 'abs()', with a non-capital 'a'Abs() is not working(?) and you don`t get the angle.
you use 'abs()' to get the length (or the absolute value) of a complex number
you use 'arg()' to abtain the angle
if you don't see how this fits in with vectors, read up on complex numbers
#52
Posted 24 November 2003 - 01:36 PM
Is it possible yo use excisting functions within the function you want to create??Userdefined-Function
for instance: define vlength((sqrt sum({x,y,z}^2,{a,b,c}^2)))
#53
Posted 24 November 2003 - 03:44 PM
#54
Posted 24 November 2003 - 03:52 PM
define vlength((sqrt sum({x,y,z}^2,{a,b,c}^2)))
Interesting!?
This is the Syntax for creating a user-defined-function:
Define [<folder name>\ ]<function name>([<variable name>[,<variable name>...]]) =<expression>
Well, I do not really understand what you want to do, but if the Syntax is correct you can use the CP-functions + user-defined-functions(not the same one).
A user-defined function cannot contain any command.
A user-defined function can contain only a single mathematical expression.
Why don`t you try it(or look it up in the manual)?
#55
Posted 25 November 2003 - 01:05 PM
Are you referring to casio basic commands?
#56
Posted 25 November 2003 - 04:30 PM
The function definitions on the classpad are not really functions as such (in programming terms a function would describe an algorithm), but simply a definition of a mathematical expression (which could include functions(built in; real ones, and simple; user defined ones))
#57
Posted 25 November 2003 - 04:43 PM
But yes, a user-defined function cannot contain any program-command.
#58
Posted 26 November 2003 - 02:04 AM
www.classpad.de, the function (make by program application) can contain Loop command, control command ( like If then else, Do, lpwhile...).
#59
Posted 26 November 2003 - 02:13 AM
#60
Posted 26 November 2003 - 06:57 PM
..the function (make by program application) can contain Loop command, control command ( like If then else, Do, lpwhile...).
That does not work. I can`t even save a program-command containing function, made with the Program-Editor.
#61
Posted 28 November 2003 - 12:08 AM
For example , lets make function gt (for factorial)
-Enter program loader.
-New files: Library folder, name: gt, parameter:n.
Function program:
Local p,i
1->p
For 1->i to n
p*i->p
Next
Then, enter Main and input gt(5), the result is 120 (=5!). I am sure.
Note: It is not the manager come with classpad, it is on the site that I write above.
#62
Posted 28 November 2003 - 08:15 AM
They should implement that in an OS-Update. It would be best, and it was already mentioned somewere, if you could start any kind of program out of the Main-Application.
#63
Posted 28 November 2003 - 10:26 AM
#64
Posted 01 December 2003 - 03:30 AM
#65
Posted 05 December 2003 - 02:31 PM
Yes, Now can I CP300 get Df and Rf ?Df stands for Domain of Function which is the set of allowable values that the independent variable (usually 'x' in a two var function) can take.
Rf stands for Range of Function which is the set of values that the dependant variable (usually 'y') can take.
Hope it helps
#66
Posted 08 December 2003 - 12:48 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users