Group Abstract Group Abstract

Message Boards Message Boards

1
|
5.3K Views
|
6 Replies
|
1 Total Like
View groups...
Share
Share this post:

The expression does not show any numerical value

Posted 5 years ago

Hello,

I am a noob in mathematica and I do not understand what I did wrong here. The expression I used for N[Last@#/First@#*100] or N[(Last@# - First@#)/First@#] does not display any numerical value, but just the expression with numbers. Can someone maybe help me?

Very thankful already

Attachment

Attachments:
POSTED BY: William Gerisch
6 Replies

Welcome to Wolfram Community! Please make sure you know the rules: https://wolfr.am/READ-1ST

The rules explain how to format your code properly. Images don't help other members to copy your code. Please EDIT your post and make sure code blocks start on a new paragraph and look framed and colored like this.

int = Integrate[1/(x^3 - 1), x];
Map[Framed, int, Infinity]

You can also embed notebook or attach notebook.

enter image description here

POSTED BY: EDITORIAL BOARD
Posted 5 years ago
POSTED BY: Joel Klein

Hey again, thanks for your recommendation. It actually works now and I changed the strings into numbers. You were a great help!! Thank you so much :)

POSTED BY: William Gerisch
Posted 5 years ago

Oh, good :)

I have to do some similar things, data science-y for work and financial stuff for my own needs so this is a familiar pattern.

POSTED BY: Joel Klein
Posted 5 years ago

You don't show how you got your input to this, but if I had to guess, you have some strings that have numeric representations mixed in with numbers.

Try wrapping your final output with InputForm, which will show the string quotation marks if they are there, and that should help backtrack to where they need to be parsed via something like Interpreter["Number"].

For example:

InputForm[seven]

Good luck!

POSTED BY: Joel Klein

Hello Joel,

thanks for your help! They are indeed strings. I added my code, because I do not really understand why they are strings in the first place. I am very new to this so sorry for the questions.

Attachment

Attachment

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