Menu

#75 Convolution problem

None
closed
nobody
display (1)
5
2017-05-25
2017-03-26
No

@Rainer and Arthur: Thank you very much for fixing the integration bugs.
Unfortunately today I wanted to calculate a series of convolutions, but the results were not satisfactory. Is it a bug or did I do anything wrong?

1 Attachments

Discussion

  • Rainer Schöpf

    Rainer Schöpf - 2017-03-26
    • labels: --> display
    • status: open --> accepted
    • Group: -->
     
  • Rainer Schöpf

    Rainer Schöpf - 2017-03-26

    Hi Manfred,

    it's actually both: first, there is a bug in the display routines. You see that if you switch to text output with "off fancy;".

    Your input doesn't do what you expect it to do: an assignment to an operator defines the exact left hand side, not a general function. I.e.

    f1(x) := x*x;
    

    tells Reduce what f1(x) means, but nothing about, e.g., f1(y).

    What you want can be achieved by either a rule like

    let f1(~x) => a*int((1-exp(-a*(x-y)))*exp(-a*y),y,0,x);
    

    or a procedure like

    procedure f1(x); a*int((1-exp(-a*(x-y)))*exp(-a*y),y,0,x);
    

    With both methods you get the desired result.

    Rainer

     
  • Rainer Schöpf

    Rainer Schöpf - 2017-03-26

    I committed a fix to the display problem.

    Rainer

     
  • Rainer Schöpf

    Rainer Schöpf - 2017-05-25
    • status: accepted --> closed
     

Log in to post a comment.