Real Variable
|
03-20-2015, 07:01 PM
Post: #1
|
|||
|
|||
Real Variable
Is it posible to declare a variable exclusive as a Real Variable as like in C
example : float c; Cheers, Jan |
|||
03-21-2015, 09:18 AM
Post: #2
|
|||
|
|||
RE: Real Variable
(03-20-2015 07:01 PM)Powersoft Wrote: Is it posible to declare a variable exclusive as a Real Variable as like in C In Home and CAS, there is no need to declare a variable as real if you use one of the permanently built-in, non-purgeable variables A through Z and θ (Theta). By design, they can only contain reals. In CAS only, assume(c, float) restricts 'c' to contain only reals. Note: you can also use DOM_FLOAT instead of float. They both mean "real". <0|ɸ|0> -Joe- |
|||
03-21-2015, 12:27 PM
Post: #3
|
|||
|
|||
RE: Real Variable
assume(c,float) is an hypothesis, a special kind of assignation. It is used by the system to simplify re/im/conj(c). But it does not prevent assignation of any value to c later (regarding that aspect, assume does the same as :=).
|
|||
03-23-2015, 06:51 AM
Post: #4
|
|||
|
|||
RE: Real Variable | |||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)