[sage-support] Re: [piecewise] AttributeError: ComplexField_class_with_category object has no attribute complex_field

2017-10-30 Thread Ralf Stephan
On Sunday, October 29, 2017 at 11:14:54 AM UTC+1, Marcel Partap wrote:
>
> Is it that piecewise functions are not yet fully fledged out,
>

This, unfortunately.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: [piecewise] AttributeError: ComplexField_class_with_category object has no attribute complex_field

2017-10-29 Thread Marcel Partap
like basically, why don't the piecewise functions collapse to scalars? This 
should result in the same output, no?
M_vec(x) = vector([M_Tx(x), M_by(x), M_bz(x)]).column()
M_vec(x = l1)
M_vec_l1 = vector([M_Tx(l1), M_by(x=l1), M_bz(x=l1)]).column()
M_vec_l1

gives instead
[piecewise(x|-->238.7324 on 
[0, 200], x|-->0 on (200, 450); x)]
[ piecewise(x|-->-4.270333*x on [0, 200], x|-->3.416267*x - 
1537.320 on (200, 450); x)]
[piecewise(x|-->-0.9833111*x on [0, 200], x|-->1.076289*x - 
484.3300 on (200, 450); x)]
[ 238.7324]
[-854.0667]
[-196.6622]


-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.