Deterministic and Probabilistic Well-posedness Results for Nonlinear Schrodinger and Wave Equations