Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.4K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How to fix a procedure?

POSTED BY: Julia Ilkiv
3 Replies
Posted 11 years ago
  1. The mathematica function for the exponential is Exp[]. 1.1. Evaluating E^x//FullForm should show you that the head of this expression is not Exp but Power 1.2. Defining the exponential function in a similar fashion like you did, would require something like (E^#)& (probably, I haven't tested it)

  2. The problem you are having with Log[] is because the logarithm is not defined for negative input values while your spxey[[1]]==-1

hope that helps

POSTED BY: nik tsak

Thanks! Exp works! but unfortunately, Log doesn't work, though I edited spxey = {0.75, 2.5, 4.25, 6}; and data = Table[{x, f[x]}, {x, 1, 6, 0.1}]; Can You help me?

POSTED BY: Julia Ilkiv
Posted 11 years ago

What exactly is wrong because I can't see any prob. It evaluates just fine for me.

Perhaps you could explain what you were expecting to receive as output and what you actually get?

POSTED BY: nik tsak
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard