Tagged Questions
5
votes
1answer
117 views
nested use of Apply/Map/MapThread in pure functions
1. My main question
I have a function with two argument slots. I wan't to apply this function to 2 lists with different length's. I thought in this solution:
...
1
vote
2answers
55 views
How to construct a new list made from a function that operates on two lists
I need to take two lists (each list contains the number of moles of a chemical). I have a function calledFraction that takes the each entry of the list and then calculates the mole fraction of ...
2
votes
2answers
90 views
Using DeleteCases and Map together
Given:
list1 = {{"a",1},{"b",2},{"c",3}}
I would like to delete any pair in list1 that does not have a first element that belongs to list2.
Example 1: If ...