Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica IF BLOCK

  1. Feb 28, 2009 #1

    I am a beginner using Mathematica. I would like to know how to express for example a function that depends on three variables and to calculate it using a IF BLOCK.

    I have the following function:


    and I want to evaluate it, to evaluate this function I have to write a IF BLOCK like the following

    IF (w-y)<d then
    IF (w-y)>0 then
    Gnuplot muss evaluate a(y,w,d)
    else is pi*d^2
    else cero.

    I have attempt it. But only it works when I put a(y,w,d) if only depends on y, but it depends also from w and d.
    Might anybody help me?
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted

Similar Threads - Mathematica BLOCK Date
Mathematica Cannot do the integral of the Hyper-geometric function? Mar 11, 2018
Mathematica Cannot Plot This Function in Mathematica Feb 26, 2018
Mathematica While Loop in Mathematica Feb 25, 2018
Mathematica Mathematica Real Part Feb 24, 2018
How to put a matrix in its block diagonal form (Mathematica) Aug 21, 2012