Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Divide doesn't evaluate' topicStudent Support Forum > General > "Divide doesn't evaluate"

Next Comment >Help | Reply To Topic
Author Comment/Response
Humphrey
09/20/07 07:22am

I have defined a new type
(* arithmetic by itself *)
DateSeries /: Times[a_DateSeries, b_DateSeries] :=
If[dsDates[a]==dsDates[b],DateSeries[Transpose[{dlDates[a], \
dsValues[a]*dsValues[b]}]],"Dates don`t match"];
DateSeries /: Divide[a_DateSeries, b_DateSeries] :=
If[dsDates[a]==dsDates[b],DateSeries[Transpose[{dlDates[a], \
dsValues[a]/dsValues[b]}]],"Dates don`t match"];

a * n is the same as Times[a,b] and works
However a/b does not evaluate and need to do Divide[a,b]
Thanks

URL: ,

Subject (listing for 'Divide doesn't evaluate')
Author Date Posted
Divide doesn't evaluate Humphrey 09/20/07 07:22am
Re: Divide doesn't evaluate Peter Pein 10/06/07 10:12am
Re: Re: Divide doesn't evaluate Humphrey Dru... 10/09/07 5:40pm
Next Comment >Help | Reply To Topic